Closed
Description
Surprisingly I cannot find in any significant places in https://github.com/nodejs/node/blob/master/doc/api/errors.md that err.code
provides a stronger stability guarantee and should be preferred over parsing err.mesage
. Am I missing something?
This is something that a lot of Node.js collaborators know, I am sure, but if we don't put it in a significant place in the docs (e.g. with examples), the users may not be able to be sure about that.
cc @jasnell