fix: add error handling to /projects endpoint#64
Conversation
|
@madhuri-perumalla is attempting to deploy a commit to the xoxogroovy-7398's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
👋 Hey @madhuri-perumalla! This PR doesn't appear to link to an issue. Please:
PRs without linked issues will not be reviewed. See our Contributing Guide for details. |
|
Hey @madhuri-perumalla! Saw your work on GSSoC 2026. We are building TermUI, a TypeScript terminal UI framework with React-style hooks and JSX, rendered entirely in the terminal. We have 67 unassigned GSSoC issues open. 19 are marked Karanjot, TermUI maintainer |
|
Hi @Karanjot786, Thanks for reaching out! I'm interested in contributing to TermUI and will take a look at the open issues. Thank you! |
Description
The
/projectsendpoint didn’t have error handling, so it would crash if the database failed. Added a try-catch to return a proper 500 error response instead.This keeps it consistent with the
/healthendpoint and improves API reliability.Type of Change
How Has This Been Tested
/healtherror handling patternChecklist