-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Observation
When I run neil dep upgrade either from the command line with an expired NEIL_GITHUB_TOKEN, Neil prints error messages, but returns with exit code 0.
$ neil-dev dep upgrade
{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
$ echo $?
0
Expected behavior
I would expect neil dep upgrade to terminate with a nonzero exit code when nothing happened due to an expired Github token.
Perhaps also give a more helpful description than printing
{"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"}
twice, informing the user that their NEIL_GITHUB_TOKEN didn't appear to work.
Extra details
- This is only likely to hit Neil developers, users are not encouraged to setup their own github token for neil.
- This also appears to affect unit tests. I hit this first by writing a unit tests an not seeing anything update. (Details: https://github.com/babashka/neil/pull/236/files#diff-971ad24024ab537d1b6a3c2d0c37956be2ea8cdf52057b474f150b24d7c3b968R312-R326)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels