mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(pipe) if error when write to file -> exeption
This commit is contained in:
parent
0e2ed81a31
commit
db5c4cef06
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue