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

Include original stacktrace when query fails #15

Merged
merged 3 commits into from Nov 5, 2021

Conversation

davidmartos96
Copy link
Contributor

@isoos Hello! I've come up with a solution for the stacktrace issue.
Since a queue is used to resolve the queries, we cannot simply include the StackTrace at the location of Completer.completeError, so when creating the Query object, the StackTrace at that time is attached. That way, when the error happens, we can use that one instead.
I don't know if there is a better way to do this kind of StackTrace handling, but with this (maybe naive) solution we get the exact line that caused the error.

@isoos
Copy link
Owner

isoos commented Nov 5, 2021

looks great, thanks!

@isoos isoos merged commit de0a9d9 into isoos:master Nov 5, 2021
@isoos
Copy link
Owner

isoos commented Nov 5, 2021

Updated changelog and bumped version, published as 2.4.2

@davidmartos96
Copy link
Contributor Author

@isoos Great! I've just noticed I missed deleting a print statement on test file 😅

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.

None yet

2 participants