Skip to content

Commit

Permalink
Exit with an error code on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bmidgley committed Aug 11, 2023
1 parent 3698f2e commit 130c82a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meshtastic/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ def setSimpleConfig(modem_preset):
except Exception as ex:
print(f"Aborting due to: {ex}")
interface.close() # close the connection now, so that our app exits
sys.exit(1)


def printConfig(config):
Expand Down

0 comments on commit 130c82a

Please sign in to comment.