Skip to content

Commit

Permalink
Fix error reporting when removing temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
NBallaney committed Nov 22, 2015
1 parent aa9e231 commit c49da52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/Node.js/resumable-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ module.exports = resumable = function(temporaryFolder){

console.log('exist removing ', chunkFilename);
fs.unlink(chunkFilename, function(err) {
if (options.onError) opentions.onError(err);
if (err && options.onError) options.onError(err);
});

pipeChunkRm(number + 1);
Expand All @@ -209,4 +209,4 @@ module.exports = resumable = function(temporaryFolder){
}

return $;
}
}

0 comments on commit c49da52

Please sign in to comment.