debugging

This commit is contained in:
Chris Troutner
2021-03-11 09:04:26 -08:00
parent 3ddbb728b4
commit e37858fd19
+3
View File
@@ -108,6 +108,9 @@ class Slp {
// Attempt to decode the error message.
const { msg, status } = _this.routeUtils.decodeError(err)
console.log('slp.js/errorHandler msg from decodeError: ', msg)
console.log('slp.js/errorHandler status from decodeError: ', status)
if (msg) {
res.status(status)
return res.json({ error: msg })