@@ -220,10 +220,10 @@ def check_config():
220
220
raise subprocess .CalledProcessError (1 , "No fqbn" )
221
221
except subprocess .CalledProcessError :
222
222
print ("No arduino-cli config!" )
223
- quit ()
223
+ quit (1 )
224
224
except subprocess .CalledProcessError :
225
225
print (arduino_platform + " is not installed!" )
226
- quit ()
226
+ quit (1 )
227
227
228
228
229
229
def load_core_config ():
@@ -366,7 +366,7 @@ def manage_inos():
366
366
break
367
367
else :
368
368
print ("Sketch {} path does not exist!" .format (args .ino ))
369
- quit ()
369
+ quit (1 )
370
370
# Sketches listed in a file
371
371
elif args .file :
372
372
assert os .path .exists (args .file ), "Sketches list file does not exist"
@@ -397,7 +397,7 @@ def manage_inos():
397
397
sketch_list .append (sketch_default )
398
398
if len (sketch_list ) == 0 :
399
399
print ("No sketch to build for " + arduino_platform + "!" )
400
- quit ()
400
+ quit (1 )
401
401
402
402
403
403
# Find all .ino files and save directory
@@ -442,7 +442,7 @@ def find_board():
442
442
raise subprocess .CalledProcessError (1 , "No fqbn" )
443
443
except subprocess .CalledProcessError :
444
444
print ("No fqbn found for " + arduino_platform + "!" )
445
- quit ()
445
+ quit (1 )
446
446
447
447
# For STM32 core, pnum is requested
448
448
for fqbn in fqbn_list_tmp :
@@ -473,7 +473,7 @@ def find_board():
473
473
board_fqbn = collections .OrderedDict (sorted (board_found .items ()))
474
474
else :
475
475
print ("No board found for " + arduino_platform + "!" )
476
- quit ()
476
+ quit (1 )
477
477
478
478
479
479
# Check the status
0 commit comments