Unverified Commit 560025a6 authored by Cristian Maglie's avatar Cristian Maglie Committed by GitHub

Better error message for boards without bootloader (#1170)

parent fb30f2df
......@@ -228,6 +228,10 @@ func runProgramAction(pm *packagemanager.PackageManager,
}
}
if !uploadProperties.ContainsKey("upload.protocol") && programmer == nil {
return fmt.Errorf("a programmer is required to upload for this board")
}
// Set properties for verbose upload
if verbose {
if v, ok := uploadProperties.GetOk("upload.params.verbose"); ok {
......
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