finish redux feature parity

This commit is contained in:
41666 2017-12-16 17:39:53 -06:00
parent f5220aa6dc
commit 5510d5a1c4
29 changed files with 220 additions and 100 deletions

View file

@ -37,9 +37,9 @@ async function start () {
await next()
} catch (e) {
log.error(e)
ctx.status = 500
ctx.status = ctx.status || 500
if (DEVEL) {
ctx.body = e.stack
ctx.body = ctx.body || e.stack
} else {
ctx.body = {
err: 'something terrible happened.'