We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e534b57 commit de392a2Copy full SHA for de392a2
1 file changed
src/Node/ChildProcess.js
@@ -77,7 +77,9 @@ exports.mkOnMessage = function mkOnMessage(nothing){
77
exports.onError = function onError(cp){
78
return function(cb){
79
return function(){
80
- cp.on("error", cb);
+ cp.on("error", function(err) {
81
+ cb(err)()
82
+ });
83
};
84
85
0 commit comments