trails/packages/db/src
Ullrich Schäfer 2d0a4ac2c7
Fix withDb: catch all non-Response errors as DB failures
The previous version checked for specific error messages that
didn't match Drizzle's actual error text ("Failed query").
Now any error from a withDb-wrapped handler returns 503.
React Router Response objects are still re-thrown.

Verified: DB down → 503 JSON, DB up → 201, home page always 200.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 23:43:10 +01:00
..
schema Update auth spec: passkeys + magic links, no passwords 2026-03-23 17:24:27 +01:00
index.ts Fix withDb: catch all non-Response errors as DB failures 2026-03-24 23:43:10 +01:00