-
Notifications
You must be signed in to change notification settings - Fork 14
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
[deploy branch command] Exit code returns 0, should return > 0 for errors #189
Comments
I believe this failed deploy also returned exit code 0
|
Yeah, there is no other exit code except EDIT: More clarification |
Checking this functionality in a local development Lagoon, the response from the graphql mutation to trigger a deployment results in this
See that the error is just a string result.
If we run the same against a non existing, or id that we have no authority to act on, we get an actual error from the API like so
|
The same if we run the same command using the CLI
|
I've put a PR in that fixes this, but we really should try and fix this in the Lagoon API properly rather than this fix in the CLI. |
Describe the bug
Exit code returns 0, should return > 0 for errors
To Reproduce
cool-project is a dummy project name
Expected behavior
Exit codes are a number between 0 and 255
The text was updated successfully, but these errors were encountered: