Skip to content

Commit

Permalink
doc: add text about error.code stability
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Nov 4, 2018
1 parent 978acdc commit e027cdb
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 e027cdb

Please sign in to comment.