mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(vite): show formatted vite-node errors (#7509)
This commit is contained in:
parent
e822c02cdc
commit
326d62803b
@ -46,9 +46,10 @@ function createRunner () {
|
||||
if (!errorData) {
|
||||
throw err
|
||||
}
|
||||
let _err
|
||||
try {
|
||||
const { message, stack } = formatViteError(errorData)
|
||||
throw createError({
|
||||
_err = createError({
|
||||
statusMessage: 'Vite Error',
|
||||
message,
|
||||
stack
|
||||
@ -62,6 +63,7 @@ function createRunner () {
|
||||
stack: 'Vite Error\nat [check console]'
|
||||
})
|
||||
}
|
||||
throw _err
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user