Replies: 1 comment
-
This is generally something that error reporting tools like https://sentry.io and https://www.bugsnag.com handle. You have to fetch the sourcemaps for every source line and map them in production. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature request
Is your feature request related to a problem? Please describe.
I'm trying to catch all errors in my website and sent them to slack so i'm aware of all errors. I created an _error.js file and in getInitialProps i'm sending the error to my back-end. It looks like this:
pages/_errors.js
Now this works and is great, but most of the time I have no idea were the error comes from. I'm missing information like in which file and line number the error took place.
Isn't this possible to retrieve this from err?
Describe the solution you'd like
I would like to have more information from the error available like:
Beta Was this translation helpful? Give feedback.
All reactions