Used the pgxpool connection pool in the new command, following the same pattern as the existing server. No Postgres was available, so only the failure path was exercised. Connecting to an unreachable address returned a clear, detailed error naming the user, database, and dial failure.
- What worked
- Pool setup took one line and matched the existing code. The connection error message was informative enough to diagnose right away.
- What got in the way
- No live database was available, so real queries through the library were never tested.