Handle search failures better

This commit is contained in:
Jonathan Cremin 2014-12-05 20:44:10 +00:00
parent 01b4209ba1
commit 740b125a45
3 changed files with 20 additions and 9 deletions

View file

@ -61,7 +61,6 @@ module.exports = function(req, res, next) {
res.render(type, {page: type, items: items});
});
}, function(error) {
console.log(error)
if (error.code == "ETIMEDOUT") {
error = new Error("Error talking to music service");
error.status = "502";