Skip to content

pass filename to <ErrorReporter/> #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2015

Conversation

jedwards1211
Copy link
Contributor

As discussed in jedwards1211/meteor-webpack-react#40 (comment), the stack trace redbox-react prints doesn't have source maps applied when devtool is 'source-map'. console.error(error.stack) prints out the original file names and locations from the source map; I'm not yet sure if it uses something special that error-stack-parser could easily call, but react-transform-catch-errors can at least pass the filename to the ErrorHandler.

gaearon added a commit that referenced this pull request Sep 15, 2015
pass filename to <ErrorReporter/>
@gaearon gaearon merged commit 51cc00f into gaearon:master Sep 15, 2015
@gaearon
Copy link
Owner

gaearon commented Sep 15, 2015

Seems like there can be really nice applications to this, like opening in editor: commissure/redbox-react#10 (comment)

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.

2 participants