Skip to content

Commit

Permalink
Better error message for boards without bootloader (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Feb 11, 2021
1 parent fb30f2d commit 560025a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/upload/upload.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 560025a

Please sign in to comment.