Browse Source

docs: fix code example in breaking-changes.md (#46093)

Niklas Wenzel 1 month ago
parent
commit
e4d660af86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/breaking-changes.md

+ 1 - 1
docs/breaking-changes.md

@@ -22,7 +22,7 @@ rejection occurs instead of crashing the process.
 To restore the previous behavior, you can use:
 
 ```js
-process.on('uncaughtException', () => {
+process.on('unhandledRejection', () => {
   process.exit(1)
 })
 ```