Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Add global error handler #120

Closed
ekryski opened this issue Apr 24, 2016 · 0 comments · Fixed by #159
Closed

Add global error handler #120

ekryski opened this issue Apr 24, 2016 · 0 comments · Fixed by #159

Comments

@ekryski
Copy link
Member

ekryski commented Apr 24, 2016

Because promises swallow errors we should add:

process.on('unhandledRejection', (reason, p) => {
  console.log("Unhandled Rejection at: Promise ", p, " reason: ", reason);
});

to the generated app in the event that a .catch() is missing.

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

Successfully merging a pull request may close this issue.

1 participant