Skip to content

Errors from the server should be clearer #6

@brian-hughes

Description

@brian-hughes
  • I would like to see the error code in the err json structure
  • I probably don't need duplicate Error and message fields
  • We have lower and upper case Error/error that seem different. Is error needed?

{ Error: [Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.
errors: [],
error: '[node-ifxnjs] SQL_ERROR',
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000' }

Maybe an error structure like this would be more useful
{
type: SQL, //presume you might want to differentiate between server error and driver error ? else this might not be needed either
code: -1234,
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions