Skip to content

Returned errors don't show SQLite error code #62

@CodingDoug

Description

@CodingDoug

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions