mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix error message in rollup and server (#72)
This commit is contained in:
parent
2186d953d0
commit
f4e15196b2
@ -64,7 +64,7 @@ async function _build (sigmaContext: SigmaContext) {
|
|||||||
|
|
||||||
spinner.start('Building server...')
|
spinner.start('Building server...')
|
||||||
const build = await rollup(sigmaContext.rollupConfig).catch((error) => {
|
const build = await rollup(sigmaContext.rollupConfig).catch((error) => {
|
||||||
spinner.fail('Rollup error: ' + error.messsage)
|
spinner.fail('Rollup error: ' + error.message)
|
||||||
throw error
|
throw error
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -62,6 +62,6 @@ export function handleError (error, req, res) {
|
|||||||
`
|
`
|
||||||
|
|
||||||
res.statusCode = error.statusCode || 500
|
res.statusCode = error.statusCode || 500
|
||||||
res.statusMessage = error.statusMessage || 'Invernal Error'
|
res.statusMessage = error.statusMessage || 'Internal Error'
|
||||||
res.end(html)
|
res.end(html)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user