Skip to content

Commit

Permalink
Merge pull request #455 from bmidgley/brad/error-exit
Browse files Browse the repository at this point in the history
Exit with an error code on failure
  • Loading branch information
thebentern authored Aug 11, 2023
2 parents 3698f2e + 130c82a commit 95bfc0b
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 95bfc0b

Please sign in to comment.