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

libsql/core: Improve error handling #223

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

penberg
Copy link
Collaborator

@penberg penberg commented Jul 20, 2023

We need to return the human-readable error message in Error::PrepareFailed so that language bindings can show it.

We need to return the human-readable error message in
`Error::PrepareFailed` so that language bindings can show it.
@penberg penberg requested a review from psarna July 20, 2023 06:57
@psarna psarna added this pull request to the merge queue Jul 20, 2023
Merged via the queue into tursodatabase:main with commit af54ae9 Jul 20, 2023
MarinPostma pushed a commit that referenced this pull request Oct 17, 2023
223: libsql-client: introduce into_result_set() r=psarna a=psarna

It's a convenience function that translates QueryResult to anyhow::Result, which makes it work with the `?` operator.

Co-authored-by: Piotr Sarna <[email protected]>
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.

2 participants