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 <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
Trott authored and MylesBorins committed Dec 3, 2018
1 parent 2659a43 commit 5fae450
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 5fae450

Please sign in to comment.