Skip to content

fix: Error w/ cause stack#50

Closed
coltonehrman wants to merge 3 commits into
pillarjs:2.xfrom
coltonehrman:fix/error-cause-stack
Closed

fix: Error w/ cause stack#50
coltonehrman wants to merge 3 commits into
pillarjs:2.xfrom
coltonehrman:fix/error-cause-stack

Conversation

@coltonehrman

@coltonehrman coltonehrman commented Aug 11, 2024

Copy link
Copy Markdown

To replace: #49

The cause stack in the Error class was not included in the response text.

This uses the native util.format() API to log out the Error stack, which includes the cause. This is essentially the same as console.[error|log]() for an Error.

This PR closes expressjs/express#5630
This PR closes #41

Loading
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.

Print causes when outputting error stacks Error cause is not displayed

3 participants