-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
meta: semver impact of Error messages #13937
Copy link
Copy link
Closed
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.metaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.
Metadata
Metadata
Assignees
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.metaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.
masterContext
There is an ongoing effort to migrate all JS expectations throws by
nodecore to have a.codeproperty. The error code allows userland to react in different exceptions specific ways.To that extent a new internal module (
internal/errors) was created #11220 and the migration is tracked in #11273 (and to less extent in https://github.com/nodejs/node/projects/4) Some module migrations landed innode@v8.0.0, some have landed inmastersince, and some have yet to be migrated. Hence it can't be asserted thatnodecore will only throw errors with an error-code, and so we have to assume the existence of userland code that depends onerror.messageparsing.Issue
At present there seems to be a difference of opinions as to the semver level of changes in messages of
internal/errors.Action item
A consensus should be reached on this issue as we want to have a clear path forward, and unambiguous guidelines for contributors.
Relevant discussion
guides/using-internal-errors.mdinternal/errors: improve ERR_INVALID_ARG_TYPE #13730 (comment)

internal/errors: improve ERR_INVALID_ARG_TYPE #13730 (comment) (landed as

semver-patchbut markeddon't land on v8.xuntil discoution is concluded)errors: improve invalid arg type #13834 (comment)

[EDIT by @Trott:
don't land->don't land on v8.xfor clarity.]