mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
fix(server api): add error to render catch
This commit is contained in:
parent
288fc3e80a
commit
890a6a62ca
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module.exports = (R, $) => {
|
||||||
ctx.body = server
|
ctx.body = server
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const txid = await ksuid.random()
|
const txid = await ksuid.random()
|
||||||
log.error(`presentable render failed -- txid: ${txid}`, id, userId, gm)
|
log.error(`presentable render failed -- txid: ${txid}`, id, userId, gm, e)
|
||||||
ctx.status = 500
|
ctx.status = 500
|
||||||
ctx.body = { err: 'render_failed', txid }
|
ctx.body = { err: 'render_failed', txid }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue