mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 02:19:08 +00:00
add server-sent errors and reduce oauth flow bare error pages
This commit is contained in:
parent
deef06fa2a
commit
cd70c58cc9
5 changed files with 26 additions and 9 deletions
4
util/error.js
Normal file
4
util/error.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
export default ($, ctx) => {
|
||||
ctx.res.statusCode = ctx.status
|
||||
return $.ui.renderError(null, ctx.req, ctx.res, '/_error', {})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue