mirror of
https://github.com/immich-app/immich.git
synced 2025-07-13 20:38:46 +02:00
fix(server): Postgres error pretty printing (#17204)
* add patch-package to dev dependencies this allows us to patch upstream packages without waiting for PRs to be merged (or not!). Patch-package does a pretty good job of notifying if upstream does a change to invalidate the patch (its a git patch under the hood). * Patch implementation of https://github.com/porsager/postgres/pull/944 This PR has not been merged by upstream and helps produce verbose error messages when postgres fails to connect (usually incorrect credentials). This is in contrast to error messages such as `TypeError: Cannot read properties of undefined (reading 'replace'), stack: TypeError: Cannot read properties of undefined (reading 'replace')` * have postinstall only run when not installing a global package (such as immich-cli in the Docker build)
This commit is contained in:
parent
8c50e3e80e
commit
d71c5602c3
3 changed files with 351 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue