Skip to content

Commit c16c07b

Browse files
committed
Added sanity check on upload parameters
1 parent 05e718d commit c16c07b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: commands/upload/upload.go

+4
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)