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

Improve awaitable errors #285

Merged
merged 7 commits into from
May 11, 2023
Merged

Conversation

wravery
Copy link
Contributor

@wravery wravery commented May 10, 2023

I tried running the client HTTP sample without starting the server, and I noticed that the Boost.Beast error from failing to connect was not being handled gracefully.

In the process of adding error reporting to the client, I realized that exceptions thrown from awaitable resolvers are caught in the Object::resolve method instead of the SelectionVisitor::visitField method, and they are missing the field location and path information. We only report the error message.

@wravery wravery merged commit ed0a754 into microsoft:main May 11, 2023
13 checks passed
@wravery wravery deleted the improve-awaitable-errors branch May 11, 2023 02:25
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

1 participant