Skip to content

Which is the format of err? #867

Open
@alexandercerutti

Description

@alexandercerutti

Hello, I'm writing here to get explanations about err callback's parameter for the methods which have it.
It is an object (typeof err; // object) but contains something "else" other than the simple keys.
I.e., it is (on ad hoc error case)

{ Error: SQLITE_ERROR: near "TABLA": syntax error errno: 1, code: 'SQLITE_ERROR' }

but its keys are

Object.keys(err); // ['errno', 'code']

So, what is the first part? Those informations should be "placed" also as Object keys, like:

{
"Error": "near 'TABLA': syntax error",
"code": "SQLITE_ERROR",
"errno": 1,
}

Can this be done on the next release? Thank you.

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