mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-20 01:34:47 +00:00
Better return error messages
This commit is contained in:
parent
2c3c9a0532
commit
d85896dcaa
|
|
@ -36,7 +36,7 @@ export class GamesService {
|
|||
gameId: 'DESC'
|
||||
}
|
||||
});
|
||||
if (!game) {
|
||||
if (!game.length) {
|
||||
throw new NotFoundException(`Game Type: ${gametype} not found`);
|
||||
}
|
||||
return game;
|
||||
|
|
|
|||
Loading…
Reference in a new issue