Skip to content

Improving the node:sqlite error messages #61051

@akc42

Description

@akc42

What is the problem this feature will solve?

When using this new module mistakes made in providing the correct SQL for the tagstore functions often just result in an error "Failed to prepare statement" with a code of "ERR_SQLITE_ERR"

However the error thrown by sqlite itself (as picked up in the sqlite3 cli tool for instance, but other code as well) is more descriptive eg "No such column: availble" when I had misspelt a column name.

What is the feature you are proposing to solve the problem?

Make it easier to understand what the actual issue is.

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions