Skip to content

Commit

Permalink
Fix error handler to trigger error event with full error object (arch…
Browse files Browse the repository at this point in the history
  • Loading branch information
riegelTech authored and ctalkington committed Jun 17, 2017
1 parent 55e8b7b commit 962f956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ Archiver.prototype.directory = function(dirpath, destpath, data) {
this._maybeFinalize();
}

function onWalkError(err) {
this.emit('error', 'directory: ' + err);
function onWalkError(errMsg, err) {
this.emit('error', 'directory: ' + errMsg, err);
}

var walker = walkdir(dirpath);
Expand Down

0 comments on commit 962f956

Please sign in to comment.