-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
child_process.spawn() uncatchable error #3523
Comments
|
var child = child_process.spawn('kill ' + pid + ';screen -d -m -L node ' + serverjsLocation); |
Thanks a lot guys! Should have read the docs more thoroughly.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After calling
I get
Node version is 4.2.1
I added try block after I started getting this error so that I might debug it.
Is this the proper way to catch this exception?
The docs (https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) do not mention callback although this is an async function. How so? I went throught nodejs internal code and while I did not get too into it I got a feeling that the function is expected to have a callback.
How do I catch this error?
The text was updated successfully, but these errors were encountered: