Skip to content

[CHORE]: Part 2: Replace Raw Errors with Friendly Messages in main.py #672

@rakdutta

Description

@rakdutta

The original issue #363 has been closed after covering several routers. However, a few endpoints in main.py still return raw technical errors. This issue aims to address those remaining routers by improving their error handling and ensuring they return user-friendly messages

Update the following router functions in main.py:

update_gateway

update_prompt

update_tool

create_prompt

create_tool

📌 Expected Improvements:
Catch common exceptions (e.g., ValidationError, IntegrityError, Exception)

Return structured responses with clear error messages

Avoid exposing raw traceback or technical details to the user

Metadata

Metadata

Assignees

Labels

choreLinting, formatting, dependency hygiene, or project maintenance chorescicdIssue with CI/CD process (GitHub Actions, scaffolding)devopsDevOps activities (containers, automation, deployment, makefiles, etc)triageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions