Skip to content

On expired NEIL_GITHUB_TOKEN, neil dep upgrade does nothing, then terminates with exit code 0 #237

@teodorlu

Description

@teodorlu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions