Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Add global error handler #98

Merged
merged 3 commits into from
Sep 6, 2019
Merged

Add global error handler #98

merged 3 commits into from
Sep 6, 2019

Conversation

vrde
Copy link

@vrde vrde commented Sep 6, 2019

Fix #91

It looks like this:
signal-attachment-2019-09-06-165515_002

If you open details, you'll see the actual stacktrace... 🎉 SOURCEMAPPED 🎉

signal-attachment-2019-09-06-165515_001

I see the sourcemap is served also in production, so everything should work as expected.

The call to action for the error is "let us know" and "copy to clipboard". If you have better ideas for it please tell me.

src/App.js Outdated Show resolved Hide resolved
@vrde
Copy link
Author

vrde commented Sep 6, 2019

maybe log to Sentry like Max proposed?

Yeah I can do it. I think Sentry is a better approach than showing the error to the end user. Should I close this PR in favor of #80?

@troggy
Copy link
Collaborator

troggy commented Sep 6, 2019

Should I close this PR in favor of #80?

No, still need to show meaningful error message to user (so we can distinguish) + ideally log a stack trace to the server.

Copy link
Collaborator

@troggy troggy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍌

@johannbarbie johannbarbie merged commit a5c84f0 into master Sep 6, 2019
@vrde vrde deleted the feat/error-boundary branch September 9, 2019 21:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

catch errors globally and alway display them
4 participants