fix(pipe) if error when write to file -> exeption

This commit is contained in:
coderaiser 2014-11-21 04:30:06 -05:00
parent 0e2ed81a31
commit db5c4cef06

View file

@ -31,8 +31,9 @@
Util.exec.if(!isFSWrite, function() {
pipe(streams, options, callback);
}, function(callback) {
write.on('open', callback);
}, function(fn) {
write.on('open', fn)
.on('error', callback);
});
}