Unverified Commit b7f3dae4 authored by Gerald Pape's avatar Gerald Pape Committed by GitHub

Fix download errors not handled during core installation (#1217)

parent 5704138c
...@@ -91,7 +91,10 @@ func installPlatform(pm *packagemanager.PackageManager, ...@@ -91,7 +91,10 @@ func installPlatform(pm *packagemanager.PackageManager,
return err return err
} }
} }
downloadPlatform(pm, platformRelease, downloadCB) err := downloadPlatform(pm, platformRelease, downloadCB)
if err != nil {
return err
}
taskCB(&rpc.TaskProgress{Completed: true}) taskCB(&rpc.TaskProgress{Completed: true})
// Install tools first // Install tools first
...@@ -114,7 +117,7 @@ func installPlatform(pm *packagemanager.PackageManager, ...@@ -114,7 +117,7 @@ func installPlatform(pm *packagemanager.PackageManager,
} }
// Install // Install
err := pm.InstallPlatform(platformRelease) err = pm.InstallPlatform(platformRelease)
if err != nil { if err != nil {
log.WithError(err).Error("Cannot install platform") log.WithError(err).Error("Cannot install platform")
return err return err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment