Skip to content

Test that logged simple handler errors has a stack#4519

Merged
Marsup merged 1 commit intohapijs:masterfrom
kanongil:error-log-stack
Oct 24, 2024
Merged

Test that logged simple handler errors has a stack#4519
Marsup merged 1 commit intohapijs:masterfrom
kanongil:error-log-stack

Conversation

@kanongil
Copy link
Contributor

This adds a test for the error.stack property to illustrate a node v22 regression.

This should be able to be fixed with hapijs/hoek#390.

Again, feel free to backport my old PR to fix this, but personally I would prefer to declare that Hapi v21 and any modules that use Hoek.clone() on potential errors (at least Hoek, Boom, and Podium) does not support node 21+.

@kanongil kanongil added the test Test or coverage label Jul 28, 2024
kanongil added a commit to kanongil/nipo that referenced this pull request Jul 31, 2024
@Marsup Marsup self-assigned this Oct 24, 2024
@Marsup
Copy link
Contributor

Marsup commented Oct 24, 2024

Looks like it passes now that hoek 11.0.5 is released. I'll make another PR to force that version.

@Marsup Marsup merged commit 286cea9 into hapijs:master Oct 24, 2024
@kanongil kanongil deleted the error-log-stack branch November 29, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Test or coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants