Skip to content

Commit 949472b

Browse files
committed
'compile' exits when wrong FQBN is passed as parameter
1 parent 2895e1a commit 949472b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commands/compile/compile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func run(cmd *cobra.Command, args []string) {
136136

137137
if parsedFqbn, err := cores.ParseFQBN(fqbn); err != nil {
138138
formatter.PrintError(err, "Error parsing FQBN.")
139+
os.Exit(commands.ErrBadArgument)
139140
} else {
140141
ctx.FQBN = parsedFqbn
141142
}

0 commit comments

Comments
 (0)