Updated all controller responses to return message not error on errors.

This commit is contained in:
2019-11-04 00:57:27 +01:00
parent f8cc19b510
commit 6b737b8ab4
31 changed files with 62 additions and 61 deletions

View File

@@ -18,7 +18,7 @@ function personInfoController(req, res) {
tmdb.personInfo(personId)
.then(person => res.send(person.createJsonResponse()))
.catch(error => {
res.status(404).send({ success: false, error: error.message });
res.status(404).send({ success: false, message: error.message });
});
}