-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: error message are still major #14375
Conversation
doc/guides/using-internal-errors.md
Outdated
changes to `internal/errors` error messages will be handled as `semver-minor` | ||
or `semver-patch`. | ||
considered a `semver-major` change. In the near future after the transition | ||
has been completed (but no sooner then `v10`) error message changes will be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typos: than, and commas after future
and )
also, I’d prefer Node 10.x
over v10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe we can say "no sooner" than v10. The decision was to handle the changes as semver-major in 8.x and to revisit within 9.x... which means we could start handling them as semver-minor as early as 9.0.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack X 2
doc/guides/using-internal-errors.md
Outdated
considered a `semver-major` change. However, once using `internal/errors`, | ||
changes to `internal/errors` error messages will be handled as `semver-minor` | ||
or `semver-patch`. | ||
considered a `semver-major` change. In the near future, after the transition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: remove near
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack
doc/guides/using-internal-errors.md
Outdated
changes to `internal/errors` error messages will be handled as `semver-minor` | ||
or `semver-patch`. | ||
considered a `semver-major` change. In the near future, after the transition | ||
has been completed, error message changes will be handled as `semver-minor` or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: will
-> may
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will hopefully
? (if we're optimistic)might
? (if we're skeptic)- or even
error message changes will be reevaluated, with the goal being to handle then as
(if we want to explain)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some nits, but with or without 'em, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with @Trott's nits addressed.
doc/guides/using-internal-errors.md
Outdated
changes to `internal/errors` error messages will be handled as `semver-minor` | ||
or `semver-patch`. | ||
considered a `semver-major` change. In the future, after the transition | ||
has been completed, error message changes will be handled as `semver-minor` or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still bikeshedding over will
: #14375 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about should
? That gives us the opportunity to change if we absolutely have to, but shows that is the direction we are trying to go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pro should
or your third suggestion @refack.
Went with In the future, after the transition has been completed, error message changes should be handled
as `semver-minor` or `semver-patch`. |
doc/guides/using-internal-errors.md
Outdated
considered a `semver-major` change. However, once using `internal/errors`, | ||
changes to `internal/errors` error messages will be handled as `semver-minor` | ||
considered a `semver-major` change. In the future, after the transition | ||
has been completed, error message changes should be handled as `semver-minor` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This makes it sound like once the errors have been all migrated, the change to treating them as not-breaking is automatic. Honestly, I think the best/easiest thing to do at this point is to remove the sentence. It's not needed. It's about a possible future state that is likely to come (but not guaranteed) and we certainly haven't agreed as to exactly when it will come. So just leave it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
Originally I thought we should end with a "hopeful" note. But that's sort of the subject of the guide as a whole.
To all who approved, current status is that the sentence dealing with future plans was dropped. PTAL. |
Still LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
considered a `semver-major` change. However, once using `internal/errors`, | ||
changes to `internal/errors` error messages will be handled as `semver-minor` | ||
or `semver-patch`. | ||
considered a `semver-major` change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is 100% true, if the error message remains the same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Error's name
changes to ${super.name} [${this[kCode]}]
so the .toString()
changes.
PR-URL: nodejs#14375 Refs: nodejs#13937 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
fa0fccb
to
ac81267
Compare
PR-URL: #14375 Refs: #13937 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
PR-URL: #14375 Refs: #13937 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Ratifying the decision from #13937
Checklist
Affected core subsystem(s)
doc,error