koajs / koajs/onerror

onerror(app,{status:500,mesage:'interval error'}) is disabled

Open
#21 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
141
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I try to return the common's format on error ,but the json of options is disabled

Contributor guide

Open the contributing guide

Research direction

Start in the onerror error-handling path and inspect how the options object and JSON error format are processed. Reproduce the reported case with status 500 and the interval error message, then add coverage showing the expected common error response is returned instead of being disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.