Skip to content

Commit 161be13

Browse files
TrottBridgeAR
authored andcommitted
doc: add text about error.code stability
Fixes: #23975 PR-URL: #24090 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 2143b56 commit 161be13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ not capture any frames.
260260
* {string}
261261

262262
The `error.code` property is a string label that identifies the kind of error.
263-
See [Node.js Error Codes][] for details about specific codes.
263+
`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.
264264

265265
### error.message
266266

0 commit comments

Comments
 (0)