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

Stack trace in Exception.msg gives poor UX #100

Open
arnetheduck opened this issue Jun 4, 2020 · 1 comment
Open

Stack trace in Exception.msg gives poor UX #100

arnetheduck opened this issue Jun 4, 2020 · 1 comment

Comments

@arnetheduck
Copy link
Member

Async stack traces should not reside in the msg field of the exception - this field is meant for a short, human-readable description of the error that can be logged on a single line.

The Exception object already contains a parent field for exceptions - this, together with a dedicated FutureError exception that has a source field for the purpose would allow code that logs the exception to deliver a better UX.

@sinkingsugar
Copy link
Contributor

hmm interesting, you are proposing to create a FutureError object, that has file/line info or stacktrace even, and assign this object parent field with the actual exception that really happened?
That's actually the easiest and also a quite good solution.

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

No branches or pull requests

2 participants