Skip to content

Commit 95bfc0b

Browse files
authored
Merge pull request #455 from bmidgley/brad/error-exit
Exit with an error code on failure
2 parents 3698f2e + 130c82a commit 95bfc0b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

meshtastic/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ def setSimpleConfig(modem_preset):
779779
except Exception as ex:
780780
print(f"Aborting due to: {ex}")
781781
interface.close() # close the connection now, so that our app exits
782+
sys.exit(1)
782783

783784

784785
def printConfig(config):

0 commit comments

Comments
 (0)