Skip to content

Commit 14e0b84

Browse files
committed
Added access to the "sqlMessage" of an error like does github:mysqljs/mysql
1 parent 8dc27c5 commit 14e0b84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/packets/packet.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ Packet.prototype.asError = function(encoding) {
713713
err.code = ErrorCodeToName[errorCode];
714714
err.errno = errorCode;
715715
err.sqlState = sqlState;
716+
err.sqlMessage = message;
716717
return err;
717718
};
718719

0 commit comments

Comments
 (0)