@@ -220,10 +220,10 @@ def check_config():
220220 raise subprocess .CalledProcessError (1 , "No fqbn" )
221221 except subprocess .CalledProcessError :
222222 print ("No arduino-cli config!" )
223- quit ()
223+ quit (1 )
224224 except subprocess .CalledProcessError :
225225 print (arduino_platform + " is not installed!" )
226- quit ()
226+ quit (1 )
227227
228228
229229def load_core_config ():
@@ -366,7 +366,7 @@ def manage_inos():
366366 break
367367 else :
368368 print ("Sketch {} path does not exist!" .format (args .ino ))
369- quit ()
369+ quit (1 )
370370 # Sketches listed in a file
371371 elif args .file :
372372 assert os .path .exists (args .file ), "Sketches list file does not exist"
@@ -397,7 +397,7 @@ def manage_inos():
397397 sketch_list .append (sketch_default )
398398 if len (sketch_list ) == 0 :
399399 print ("No sketch to build for " + arduino_platform + "!" )
400- quit ()
400+ quit (1 )
401401
402402
403403# Find all .ino files and save directory
@@ -442,7 +442,7 @@ def find_board():
442442 raise subprocess .CalledProcessError (1 , "No fqbn" )
443443 except subprocess .CalledProcessError :
444444 print ("No fqbn found for " + arduino_platform + "!" )
445- quit ()
445+ quit (1 )
446446
447447 # For STM32 core, pnum is requested
448448 for fqbn in fqbn_list_tmp :
@@ -473,7 +473,7 @@ def find_board():
473473 board_fqbn = collections .OrderedDict (sorted (board_found .items ()))
474474 else :
475475 print ("No board found for " + arduino_platform + "!" )
476- quit ()
476+ quit (1 )
477477
478478
479479# Check the status
0 commit comments