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

Returned errors don't show SQLite error code #62

Open
CodingDoug opened this issue Aug 2, 2023 · 0 comments
Open

Returned errors don't show SQLite error code #62

CodingDoug opened this issue Aug 2, 2023 · 0 comments

Comments

@CodingDoug
Copy link
Contributor

CodingDoug commented Aug 2, 2023

The other libsql drivers show both the SQLite error code along with the message. This helps developers better understand and diagnose problems. For example, the TypeScript and Python SDKs yield errors that look like this:

SQLITE_CONSTRAINT: SQLite error: cannot store TEXT value in INT column foo.i

Whereas this SDK shows:

SQLite error: cannot store TEXT value in INT column foo.i

Ideally the error object is a struct that provides the code and message separately, but I'm not sure if that's possible as sql/database driver.

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

1 participant