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

Rethrown errors should retain stack from the original error #815

Open
luxaritas opened this issue Aug 20, 2024 · 0 comments
Open

Rethrown errors should retain stack from the original error #815

luxaritas opened this issue Aug 20, 2024 · 0 comments
Labels
priority: p4/minor There is a reasonable workaround, or there is a nice to have with limited impact size: md type: enhancement New feature or request

Comments

@luxaritas
Copy link
Member

Describe your idea

Currently, if an error is caught and a new error (eg, with a better description) is rethrown, it will include the traceback at the point the new error is thrown. We may want to have information about the original error, namely its stack trace.

Motivation

Easier debugging

Proposed Solution

We should probably make use of Error.cause, setting it when "rethrowing" errors and using it when logging/showing error details eg in the error dialog

Other Information

Covering related concerns: #797 #796 #794

@luxaritas luxaritas added type: enhancement New feature or request size: md priority: p4/minor There is a reasonable workaround, or there is a nice to have with limited impact labels Aug 20, 2024
@github-project-automation github-project-automation bot moved this to Todo in Roadmap Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p4/minor There is a reasonable workaround, or there is a nice to have with limited impact size: md type: enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant