Skip to content

Commit ef88f91

Browse files
committed
docs: add err.errno description
closes mysqljs#1997
1 parent eccf10e commit ef88f91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,8 @@ object. Additionally they typically come with two extra properties:
11591159
a [MySQL server error][] (e.g. `'ER_ACCESS_DENIED_ERROR'`), a Node.js error
11601160
code if it is a Node.js error (e.g. `'ECONNREFUSED'`), or an internal error
11611161
code (e.g. `'PROTOCOL_CONNECTION_LOST'`).
1162+
* `err.errno`: Number, contains the MySQL server error number. Only populated
1163+
from [MySQL server error][].
11621164
* `err.fatal`: Boolean, indicating if this error is terminal to the connection
11631165
object. If the error is not from a MySQL protocol operation, this property
11641166
will not be defined.

0 commit comments

Comments
 (0)