Handle search failures better
This commit is contained in:
parent
01b4209ba1
commit
740b125a45
3 changed files with 20 additions and 9 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue