Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Trace warnings by default on dev mode #68

Closed
pragmaticivan opened this issue Mar 16, 2017 · 3 comments
Closed

Trace warnings by default on dev mode #68

pragmaticivan opened this issue Mar 16, 2017 · 3 comments

Comments

@pragmaticivan
Copy link
Contributor

It's quite annoying sometimes using async/await native since it doesn't show the stack trace for the async error. I would suggest enabling to show trace warnings by default on development mode.

ref:

@cirocosta
Copy link
Contributor

hey @pragmaticivan , how does that work? Could you provide a TL;dr?

Thx!

@pragmaticivan
Copy link
Contributor Author

Hey @cirocosta , it's actually pretty simple.

Usually, you get something like (node:31438) UnhandledPromiseRejectionWarning: Unhandled promise rejection with a unhandled promise/asyncfunction .

The flag --trace-warnings shows the stack trace so you can better find out where is the approximated place to find the bug.

@eduardolundgren
Copy link
Contributor

@pragmaticivan could you try it out and see if it's showing the stack trace? Note that it's also logging the error on the error middleware.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants