Better return error messages

This commit is contained in:
Anthony Mineo 2020-08-29 19:26:53 -04:00
parent 2c3c9a0532
commit d85896dcaa

View file

@ -36,7 +36,7 @@ export class GamesService {
gameId: 'DESC'
}
});
if (!game) {
if (!game.length) {
throw new NotFoundException(`Game Type: ${gametype} not found`);
}
return game;