Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add non-zero exit code when flashing fails #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacobeva
Copy link

When utilising adafruit-nrfutil as a part of scripts, it is helpful to have
useful error codes which indicate the status of the program after it exits.

In this PR I have added a non-zero exit code when flashing fails on the chosen
device (e.g. invalid port). Previously, the program would've returned zero
here, indicating the command completed successfully. Clearly this should not be
the case.

If this should be done another way than how I have suggested, please let me
know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant