Add full error output instead of default text

This commit is contained in:
Christian Bundy 2019-08-13 14:32:12 -07:00
parent 0997a3b5b3
commit ef8fa0fe7c
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ module.exports = (config) => {
const app = module.exports = new Koa()
app.on('error', (err) => {
// Output full error objects
err.message = err.stack
err.expose = true
})
app.use(mount('/assets', assets))
router