h3 icon indicating copy to clipboard operation
h3 copied to clipboard

`message` field in `createError` not included in response

Open siranweb opened this issue 9 months ago • 0 comments

Environment

node: 20.11.1 h3: 1.11.1

Reproduction

https://stackblitz.com/edit/github-d9z5tl-zkmmw7?file=app.ts

Describe the bug

Regarding docs, I expect to see message field in response when it passed to createError. Not sure, is it actually a bug or a docs issue

Additional context

I checked error.ts. Seems like message field insn't being used in response at all. Maybe it was expected to work like status/statusCode, when one of fields appears in response as statusCode

Logs

No response

siranweb avatar May 19 '24 12:05 siranweb