mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: add text about error.code stability
Fixes: https://github.com/nodejs/node/issues/23975 PR-URL: https://github.com/nodejs/node/pull/24090 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
1 parent
2659a43905
commit
5fae45075c
1 file changed
+1
-1
+1
-1
@@ -260,7 +260,7 @@ not capture any frames.
|
||||
* {string}
|
||||
|
||||
The `error.code` property is a string label that identifies the kind of error.
|
||||
See [Node.js Error Codes][] for details about specific codes.
|
||||
`error.code` is the most stable way to identify an error. It will only change between major versions of Node.js. In contrast, `error.message` strings may change between any versions of Node.js. See [Node.js Error Codes][] for details about specific codes.
|
||||
|
||||
### error.message
|
||||
|
||||
|
||||
Reference in new issue
Block a user