mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): preserve error.data
in response (#4755)
This commit is contained in:
parent
b2d2388574
commit
ffb9f71312
@ -15,7 +15,8 @@ export default <NitroErrorHandler> async function errorhandler (_error, event) {
|
||||
message,
|
||||
description: process.env.NODE_ENV === 'development' && statusCode !== 404
|
||||
? `<pre>${stack.map(i => `<span class="stack${i.internal ? ' internal' : ''}">${i.text}</span>`).join('\n')}</pre>`
|
||||
: ''
|
||||
: '',
|
||||
data: (_error as any).data
|
||||
}
|
||||
|
||||
// Set response code and message
|
||||
|
Loading…
Reference in New Issue
Block a user