Skip to content

Commit

Permalink
fix: add [h3] prefix to console error
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 31, 2022
1 parent b0a1565 commit 2f4859c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function sendError (event: CompatibilityEvent, error: Error | H3Error, de
if (error instanceof H3Error) {
h3Error = error
} else {
console.error(error) // eslint-disable-line no-console
console.error('[h3]', error) // eslint-disable-line no-console
h3Error = createError(error)
}

Expand Down

0 comments on commit 2f4859c

Please sign in to comment.