Skip to content

Commit 860d1df

Browse files
authored
"core install" now emits an error if a tool is not available for current OS (#795)
Fix #755
1 parent 93158d2 commit 860d1df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: commands/core/install.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ func installPlatform(pm *packagemanager.PackageManager,
8686
// Package download
8787
taskCB(&rpc.TaskProgress{Name: "Downloading packages"})
8888
for _, tool := range toolsToInstall {
89-
downloadTool(pm, tool, downloadCB)
89+
if err := downloadTool(pm, tool, downloadCB); err != nil {
90+
return err
91+
}
9092
}
9193
downloadPlatform(pm, platformRelease, downloadCB)
9294
taskCB(&rpc.TaskProgress{Completed: true})

0 commit comments

Comments
 (0)