0xironclad / 0xironclad/Job-Application-Tracker

Implement centralized error handling middleware

未關閉
#19 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
backend validation
主要語言
TypeScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

Create a centralized Express error handling middleware that converts thrown errors into consistent JSON responses with status codes and error codes. Ensure unexpected errors are logged but do not leak internal details to clients.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Look for existing middleware in the Express app setup, likely in app.js or server.js. Create a new middleware function that catches errors, logs them internally, and sends a structured JSON response with status and error code. Check for any existing error handling utilities or logging configuration. Test by throwing different errors in routes to verify the middleware catches and formats them correctly.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
express, nodejs, typescript
領域
api, backend
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。