Files
TREK/server/src/nest/common/describe-error.ts
T
Isaias Tavares 2e3762afe1 feat(db): run TREK on PostgreSQL
TREK runs on PostgreSQL when TREK_DB_URL is set, and on SQLite as before
otherwise: an engine port under src/db/engine, the dialect helpers under
src/db/dialect, a Postgres baseline for the migrations up to the cut,
pg_dump/pg_restore backups, a probe of every repository method against a
real server and a Postgres test lane in CI.
2026-11-17 23:03:33 +01:00

3 lines
215 B
TypeScript

/** The message of an error, or the value itself as text when it is not an Error (a thrown string, say). */
export const describeError = (err: unknown): string => (err instanceof Error ? err.message : String(err));