fix(server api): add error to render catch

This commit is contained in:
41666 2020-02-10 23:49:37 -05:00
parent 288fc3e80a
commit 890a6a62ca

View file

@ -50,7 +50,7 @@ module.exports = (R, $) => {
ctx.body = server
} catch (e) {
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.body = { err: 'render_failed', txid }
}