Skip to content

Commit

Permalink
Added sanity check on upload parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jun 12, 2020
1 parent 05e718d commit c16c07b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ func runProgramAction(pm *packagemanager.PackageManager,

var importPath *paths.Path
if !burnBootloader {
if sketch == nil {
return fmt.Errorf(("no sketch specified"))
}

if importDir != "" {
importPath = paths.New(importDir)
} else {
Expand Down

0 comments on commit c16c07b

Please sign in to comment.