Error logging for gsheet fetch

This commit is contained in:
efarooqui
2021-04-14 18:07:48 -07:00
parent 6ab37ccb70
commit 8bd5f38ac4
3 changed files with 6 additions and 3 deletions

View File

@@ -30,9 +30,10 @@ export default ({ config, controller }) => {
success: msg
})
)
.catch(err =>
.catch(err => {
res.status(404)
.send({ error: err.message, err })
}
)
})