Skip to content

Commit 254acf8

Browse files
committed
Fix Sequence#ErrorPacket default handler
This was broken, but all Sequences except for Quit overwrite this handler, so it is unlikely to have caused issues. Anyway, OOP sucks, long live OOP.
1 parent 8278fe5 commit 254acf8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/protocol/sequences/Sequence.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ Sequence.prototype['OkPacket'] = function(packet) {
7676
};
7777

7878
Sequence.prototype['ErrorPacket'] = function(packet) {
79-
var err = Sequence.packetToError(packet);
80-
this.end(err);
79+
this.end(this._packetToError(packet));
8180
};
8281

8382
// Implemented by child classes

0 commit comments

Comments
 (0)