log whole error
This commit is contained in:
parent
51bdb61105
commit
fb7eea3dfe
|
@ -206,6 +206,7 @@ export class Server {
|
|||
return res.send(data)
|
||||
} catch (err) {
|
||||
const { message } = err;
|
||||
this.logger.error(err)
|
||||
this.logger.error(message)
|
||||
return res.status(500).send({ error: err.message })
|
||||
}
|
||||
|
|
Reference in New Issue