Commit 949472bc authored by Cristian Maglie's avatar Cristian Maglie

'compile' exits when wrong FQBN is passed as parameter

parent 2895e1af
......@@ -136,6 +136,7 @@ func run(cmd *cobra.Command, args []string) {
if parsedFqbn, err := cores.ParseFQBN(fqbn); err != nil {
formatter.PrintError(err, "Error parsing FQBN.")
os.Exit(commands.ErrBadArgument)
} else {
ctx.FQBN = parsedFqbn
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment