Skip to content

fix: only hide message of unhandled errors in prod#2619

Merged
pi0 merged 1 commit into
v2from
fix/fatal-error
Jul 17, 2024
Merged

fix: only hide message of unhandled errors in prod#2619
pi0 merged 1 commit into
v2from
fix/fatal-error

Conversation

@pi0

@pi0 pi0 commented Jul 16, 2024

Copy link
Copy Markdown
Member

Fix regression of #2591 that hides messages of fatal: true errors.

Context: As pointed out in nuxt/nuxt#28156 (comment), the current assumption was that fatal can be also used by user-thrown errors.

In the future, we might introduce a new internal flag to h3 errors to clearly separate internal and user errors from each other and keep (internal) fatal also private.

@pi0 pi0 self-assigned this Jul 16, 2024
@pi0
pi0 requested a review from danielroe July 16, 2024 17:12
@pi0 pi0 changed the title fix: only hide message of unhandled errors fix: only hide message of unhandled errors in prod Jul 16, 2024
Comment thread src/runtime/internal/utils.ts
@pi0
pi0 merged commit 43eca31 into v2 Jul 17, 2024
@pi0
pi0 deleted the fix/fatal-error branch July 17, 2024 05:29
@pi0 pi0 mentioned this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants