-
Notifications
You must be signed in to change notification settings - Fork 9
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
TypeError: cb is not a function when child exits with error #13
Comments
Hello, Thanks for the report it looks indeed like there is a mismatch in the API. Do you by chance have a simple error throwing example that we could add in the tests ? (without got and external resources, and with usual commands that are available in linux) ? |
@jeromew I guess something like:
|
@jeromew I did a "fix" in a fork like this because it was crashing the process (the error was not passed inside the pipeline):
I'm not sure if it's correct though. I wonder if I should pass the |
I'm using Child_Process like this:
If pngquant command fails I have an unhandled error:
readable.destroy() and writable.destroy() expect an error argument: https://nodejs.org/api/stream.html#stream_readable_destroy_error
But Child_Process sets this function for destroy method:
And this function expects a cb:
The text was updated successfully, but these errors were encountered: