Skip to content

Invalid URL does not throw correct error #3513

@mathiasbockwoldt

Description

@mathiasbockwoldt

This commit introduced redaction of URL details in this file packages/pg-connection-string/index.js:
7ab5923#diff-08a5e82487ebd9b43751630019753901fae0a111f8d009ad2e9d194445e96922

This is good, but the problem is that the error is not thrown anymore. It's just caught and modified, but the modified error is not thrown again. The actual error that is thrown is TypeError: Cannot read properties of undefined (reading 'searchParams'), which is not helpful at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions