Handle non-album/track ids in GPM, 404 xbox

This commit is contained in:
Jonathan Cremin 2014-12-28 23:19:18 +00:00
parent b3ca20570e
commit 15712f9482
4 changed files with 14 additions and 3 deletions

View file

@ -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;
}