-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Exit code ignored with SentryCli.execute([...], true)
(live mode)
#2062
Comments
Hi @dotboris, the problem appears to be that you are running the command with
We should likely clarify the |
Thank you for pointing that out. In my case, I find the |
SentryCli.execute(...)
SentryCli.execute([...], true)
(live mode)
Hi @dotboris, can you please clarify why you need the |
The |
Okay, appreciate the clarification! I will see whether we can fix this behavior and respond once I have more information |
CLI Version
2.31.2
Operating System and Architecture
Operating System Version
Ubuntu 20.4 & MacOS 14.4.1
Link to reproduction repository
No response
CLI Command
No response
Exact Reproduction Steps
Run the following in a node REPL:
node -i
Note that under the hood,
sentry-cli
's exit code is2
in this context.Expected Results
I expect the
execute([...], true)
function to throw an Error that I can catch and react to. It does throw an error when the second argument isfalse
but not when it's set totrue
.Actual Results
No errors are thrown, the command ends as if everything was OK
Logs
There are no logs in this context
The text was updated successfully, but these errors were encountered: