add server-sent errors and reduce oauth flow bare error pages

This commit is contained in:
41666 2019-03-21 07:04:17 -05:00
parent deef06fa2a
commit cd70c58cc9
5 changed files with 26 additions and 9 deletions

4
util/error.js Normal file
View file

@ -0,0 +1,4 @@
export default ($, ctx) => {
ctx.res.statusCode = ctx.status
return $.ui.renderError(null, ctx.req, ctx.res, '/_error', {})
}