Skip to content

doc: Event: 'unhandledRejection' code example not borked #5644

Description

@jmm

https://nodejs.org/api/process.html#process_event_unhandledrejection

somePromise.then((res) => {
  return reportToUser(JSON.parse(res)); // note the typo
}); // no `.catch` or `.then`

Someone made off with the typo. When this is put back together I'd suggest updating to something like:

// note the typo (`pasre`)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions