diff --git a/lib/internal/process/promises.js b/lib/internal/process/promises.js index a6c65b0be4d84d..9b13cecb6a198f 100644 --- a/lib/internal/process/promises.js +++ b/lib/internal/process/promises.js @@ -181,7 +181,7 @@ function emitUnhandledRejectionWarning(uid, reason) { 'or by rejecting a promise which was not handled with .catch(). ' + 'To terminate the node process on unhandled promise ' + 'rejection, use the CLI flag `--unhandled-rejections=strict` (see ' + - 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). ' + + 'https://nodejs.org/api/cli.html#--unhandled-rejectionsmode). ' + `(rejection id: ${uid})` ); try { diff --git a/test/message/promise_unhandled_warn_with_error.out b/test/message/promise_unhandled_warn_with_error.out index 66c98c57f71717..68b4096bc13c76 100644 --- a/test/message/promise_unhandled_warn_with_error.out +++ b/test/message/promise_unhandled_warn_with_error.out @@ -7,4 +7,4 @@ at * at * (Use `* --trace-warnings ...` to show where the warning was created) -*UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) \ No newline at end of file +*UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#--unhandled-rejectionsmode). (rejection id: 1) diff --git a/test/parallel/test-promises-unhandled-symbol-rejections.js b/test/parallel/test-promises-unhandled-symbol-rejections.js index 6ce6808abd2c47..eabec2f95a0d2c 100644 --- a/test/parallel/test-promises-unhandled-symbol-rejections.js +++ b/test/parallel/test-promises-unhandled-symbol-rejections.js @@ -10,7 +10,7 @@ const expectedPromiseWarning = ['Unhandled promise rejection. ' + 'not handled with .catch(). To terminate the ' + 'node process on unhandled promise rejection, ' + 'use the CLI flag `--unhandled-rejections=strict` (see ' + - 'https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). ' + + 'https://nodejs.org/api/cli.html#--unhandled-rejectionsmode). ' + '(rejection id: 1)']; common.expectWarning({