Skip to content

Commit

Permalink
tune
Browse files Browse the repository at this point in the history
  • Loading branch information
openblw committed Aug 20, 2019
1 parent 57bf3d9 commit 58ba459
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/peer/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,9 @@ Peer.prototype.emitError = function(type, err) {
if (typeof err === 'string') {
err = new Error(err);
}
err.type = type;
if (err) {
err.type = type;
}
this.emit('error', err);
};

Expand Down

0 comments on commit 58ba459

Please sign in to comment.