mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
ce1c3cf62d
guardIdentity matched only SQLite's message text, so on Postgres a lost race for an email or a username escaped as a 500 instead of a 409. The new dialect module driver-errors.ts reads a unique violation by Postgres's SQLSTATE 23505 and constraint name, or by SQLite's message, and the users repository maps the key names of both engines. isMissingTableError moves there too and also knows Postgres's 42P01 for an unconverted error.