Handle non-album/track ids in GPM, 404 xbox
This commit is contained in:
parent
b3ca20570e
commit
15712f9482
4 changed files with 14 additions and 3 deletions
|
@ -46,9 +46,9 @@ module.exports = function(req, res, next) {
|
|||
error = new Error("An unexpected error happenend");
|
||||
error.status = 500;
|
||||
next(error);
|
||||
} else if (error.status == 404){
|
||||
res.json({error:{message:"No match found for url"}});
|
||||
}
|
||||
|
||||
res.json({error:{message:"No match found for url"}});
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue