Add full error output instead of default text
This commit is contained in:
parent
0997a3b5b3
commit
ef8fa0fe7c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue