Skip to content

Standardizing on a single error type #972

Closed
@kevinburkeshyp

Description

@kevinburkeshyp

Hi Brian - we just got bit by #938 and I am hoping to fix the issue.

Per your comment here:

This is probably something that should be normalized within node-postgres itself rather than here in the native lib. If you wanna take a crack at it over there I'll happily review the PR!

It sounds like your proposed solution is to keep the node-postgres error API consistent, and transform error objects coming from pg-native, instead of:

  • changing the error objects here to match the ones in the pg-native library
  • changing the error objects in pg-native to match the error here.

does that sound right? i'll start working on a patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions