Skip to content

Commit 2605a2f

Browse files
Handle createWriteStream errors
1 parent 924f4d4 commit 2605a2f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

files.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ function copyFile(src, dest, callback) {
512512
source.on('error', function(err) {
513513
callback(err);
514514
});
515+
finalDest.on('error', function(err) {
516+
callback(err);
517+
});
515518
}
516519

517520
if (typeof exports !== 'undefined') {

0 commit comments

Comments
 (0)