Skip to content

Remote databases don't support raw error code #117

Description

@penberg

I disabled the raw error code tests in 846b2d0 for remote databases because we never set the error code for remote database errors:

export function mapHranaError(e: unknown): unknown {
    if (e instanceof hrana.ClientError) {
        const code = mapHranaErrorCode(e);
        return new LibsqlError(e.message, code, undefined, e);
    }
    return e;
}

(It's the undefined there after code when constructing LibsqlError)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions