Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b58c2d8

Browse files
committedMay 25, 2020
Added sanity check on upload parameters
1 parent 8d1fcc1 commit b58c2d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎commands/upload/upload.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ func runProgramAction(pm *packagemanager.PackageManager,
237237

238238
var importPath *paths.Path
239239
if !burnBootloader {
240+
if sketch == nil {
241+
return fmt.Errorf(("no sketch specified"))
242+
}
243+
240244
if importDir != "" {
241245
importPath = paths.New(importDir)
242246
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.