PostgresJS error handling
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We should wrap the postgres connection in an error handler to deal with any incomplete postgres setup issues which will inevitably arise. It should give helpful messages like:
If error connecting to database TBSP: first check if postgres is running (otherwise deal with that error), then ensure TBSP doesn't exist and tell user to `$ createdb TBSP` (or another name and supply `TBSP_DBNAME`)
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Postgres connection setup and its existing error-handling path; the issue does not name a file or test. Review how connection failures and TBSP_DBNAME are currently handled, then define completion around helpful messages for a stopped Postgres service, a missing database, and the required createdb command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgres, typescript
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100