It would be good to add a code (https://nodejs.org/api/errors.html#errors_error_code) so that consumers can introspect for particular error types without checking the fragile message (which some do...).
It would be good to add a code (https://nodejs.org/api/errors.html#errors_error_code) so that consumers can introspect for particular error types without checking the fragile message (which some do...).