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
Merge 'exec: internal error' with ShellJSInternalError #734
Comments
@freitagbr can you investigate this? |
Yes, I will look into this. |
@freitagbr is this something we can land for v0.8.0? |
Yeah, I can put something together in the next few days. |
I think we'll have to bump this back to v0.9.0, didn't quite sort out the PR in time. |
This was referenced Nov 29, 2019
This was referenced Mar 24, 2020
This was referenced Apr 24, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't actually remember why we have both
ShellJSInternalError
andexec: internal error
, but they mean the same thing: there's a bug in ShellJS code somewhere. These should probably get merged together, so that we can actually keep the exception stack for bugs inexec
. This would help immensely in debugging.While it's true that
exec()
sometimes crashes unavoidably (like if we overrun the max buffer), it's definitely still helpful to have the stack trace, and it still makes sense to report it as an exception, instead of withshell.error()
(that should be reserved for the external command's stderr).The text was updated successfully, but these errors were encountered: