Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 5, 2022
1 parent 782a9cf commit 29d647a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/error/modern/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const onErrorHandler = function (
return mergeErrorCause(systemError)
}

// If defined, the "bugsUrl" option prints a line recommend the error to report
// any SystemError.
// The option value can be the `bugs.url` field of `package.json`, which is
// easier to retrieve with JSON imports (Node >=16.14.0)
const getSystemErrorMessage = function (bugsUrl) {
return bugsUrl === undefined ? '' : `Please report this bug at: ${bugsUrl}`
}

0 comments on commit 29d647a

Please sign in to comment.