Skip to content

Commit

Permalink
doc: add text about error.code stability
Browse files Browse the repository at this point in the history
Fixes: #23975

PR-URL: #24090
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
Trott authored and BridgeAR committed Nov 13, 2018
1 parent 2143b56 commit 161be13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 161be13

Please sign in to comment.