Skip to content
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

Rethrowing original errors thrown in selector functions #1474

Merged
merged 2 commits into from
Nov 27, 2019

Conversation

r3dm1ke
Copy link
Contributor

@r3dm1ke r3dm1ke commented Nov 24, 2019

When throwing error from selector function, append original error stacktrace (if present) to new error. Should fix #1433

When throwing error from selector function, append original error stacktrace (if present) to new error.
@netlify
Copy link

netlify bot commented Nov 24, 2019

Deploy preview for react-redux-docs ready!

Built with commit f310d64

https://deploy-preview-1474--react-redux-docs.netlify.com

@timdorr
Copy link
Member

timdorr commented Nov 24, 2019

No, the issue we have is that we catch one error and throw a different error. My suggestion is probably the way to go here.

@r3dm1ke r3dm1ke changed the title Added optional stacktrace to errors thrown from selector functions Rethrowing original errors thrown in selector functions Nov 27, 2019
@timdorr
Copy link
Member

timdorr commented Nov 27, 2019

Cool, thanks for putting this together!

@timdorr timdorr merged commit 5402f24 into reduxjs:master Nov 27, 2019
albertodev7 pushed a commit to albertodev7/react-redux that referenced this pull request Dec 8, 2022
* Added optional stacktrace to errors thrown from selector functions

When throwing error from selector function, append original error stacktrace (if present) to new error.

* Rethrowing original errors from selector functions
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.

Do not alter exception thrown from selector
2 participants