fix error message in rollup and server (#72)

This commit is contained in:
Xin Du (Clark) 2021-01-20 22:09:22 +00:00 committed by GitHub
parent 2186d953d0
commit f4e15196b2
2 changed files with 2 additions and 2 deletions

View File

@ -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
}) })

View File

@ -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)
} }