Skip to content

doc: rename warn-with-error to warn-with-error-code #872

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

Merged
merged 1 commit into from
Jun 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions surveys/promise-rejections/survey.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Consider the following modes:
- `strict`: raise an uncaught exception similar to `throw new Error()` that is not caught. `unhandledRejection` listeners do not prevent raising the exception
- `throw`: raise an uncaught exception similar to `throw new Error()` that is not caught. `unhandledRejection` listeners take precedence and prevent raising the exception
- `warn`: outputs a warning as soon as possible. Continues running after the warning is emitted. If the process exits and no status code was set, the process exits with a success code. This is similar to what browser consoles do
- `warn-with-error`: outputs a warning as soon as possible. Continues running after the warning is emitted. If the process exits and no status code was set, the process exits with an error code
- `warn-with-error-code`: outputs a warning as soon as possible. Continues running after the warning is emitted. If the process exits and no status code was set, the process exits with an error code
- `none`: do nothing

For all the modes, the action (raise an exception output a warning) will happen on `nextTick`.
Expand All @@ -254,6 +254,6 @@ Which one you think should be the default on Node.js?
- [ ] `strict`
- [ ] `throw`
- [ ] `warn`
- [ ] `warn-with-error`
- [ ] `warn-with-error-code`
- [ ] `none`
- [ ] Other (please elaborate)