Skip to content

Commit

Permalink
fixup! Change UNKNOWN_CODE_PLEASE_REPORT to identify uknown code
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Sep 15, 2021
1 parent c8970f4 commit 19aa86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/protocol/sequences/Sequence.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Sequence.prototype.hasErrorHandler = function() {
};

Sequence.prototype._packetToError = function(packet) {
var code = ErrorConstants[packet.errno] || 'UNKNOWN_CODE_PLEASE_REPORT: ' + packet.errno;
var err = new Error(code + ': ' + packet.message);
var code = ErrorConstants[packet.errno] || 'UNKNOWN_CODE_PLEASE_REPORT';
var err = new Error(code + '[' + packet.errno + ']: ' + packet.message);
err.code = code;
err.errno = packet.errno;

Expand Down

0 comments on commit 19aa86d

Please sign in to comment.