log whole error

This commit is contained in:
Karol Wypchlo 2020-02-13 14:45:27 -05:00
parent 51bdb61105
commit fb7eea3dfe
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ export class Server {
return res.send(data) return res.send(data)
} catch (err) { } catch (err) {
const { message } = err; const { message } = err;
this.logger.error(err)
this.logger.error(message) this.logger.error(message)
return res.status(500).send({ error: err.message }) return res.status(500).send({ error: err.message })
} }