Skip to content

Commit

Permalink
fix(pipe) if error when write to file -> exeption
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Nov 21, 2014
1 parent 0e2ed81 commit db5c4ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/server/pipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit db5c4ce

Please sign in to comment.