Skip to content

Commit 19aa86d

Browse files
committed
fixup! Change UNKNOWN_CODE_PLEASE_REPORT to identify uknown code
1 parent c8970f4 commit 19aa86d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/protocol/sequences/Sequence.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ Sequence.prototype.hasErrorHandler = function() {
4343
};
4444

4545
Sequence.prototype._packetToError = function(packet) {
46-
var code = ErrorConstants[packet.errno] || 'UNKNOWN_CODE_PLEASE_REPORT: ' + packet.errno;
47-
var err = new Error(code + ': ' + packet.message);
46+
var code = ErrorConstants[packet.errno] || 'UNKNOWN_CODE_PLEASE_REPORT';
47+
var err = new Error(code + '[' + packet.errno + ']: ' + packet.message);
4848
err.code = code;
4949
err.errno = packet.errno;
5050

0 commit comments

Comments
 (0)