summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-11-04 14:29:45 -0800
committerRich Trott <rtrott@gmail.com>2018-11-07 09:24:50 -0800
commit1368eb893c4c6f282456210e9f8f54f53536d151 (patch)
treec5ba1cfee396abb8dbd3a45154ab67b80dc3902c /doc
parent366f9b9b556ace5f26ca4c796a70baf508a02b9a (diff)
downloadandroid-node-v8-1368eb893c4c6f282456210e9f8f54f53536d151.tar.gz
android-node-v8-1368eb893c4c6f282456210e9f8f54f53536d151.tar.bz2
android-node-v8-1368eb893c4c6f282456210e9f8f54f53536d151.zip
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/errors.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/errors.md b/doc/api/errors.md
index 264b7d0ea9..575f77861f 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -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