Skip to content

Commit bb5f711

Browse files
committed
fix(security): don't expose internal error details in HTTP response
Replace 'Failed to fetch repositories: {str(e)}' with generic message. logger.error still records full error for diagnostics.
1 parent 84a7aaf commit bb5f711

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/routes/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ async def list_github_repos(
357357
detail="GitHub access revoked. Please reconnect your GitHub account."
358358
)
359359

360-
raise HTTPException(status_code=500, detail=f"Failed to fetch repositories: {str(e)}")
360+
raise HTTPException(status_code=500, detail="Failed to fetch repositories")

0 commit comments

Comments
 (0)