fix: change wording on error

This commit is contained in:
ilham
2021-12-17 01:46:22 +07:00
parent 3c8b018937
commit c5b5a4ab06
8 changed files with 22 additions and 22 deletions

View File

@@ -205,7 +205,7 @@ export class UsersService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'User not found',
},
HttpStatus.NOT_FOUND,
);
@@ -228,7 +228,7 @@ export class UsersService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'User not found',
},
HttpStatus.NOT_FOUND,
);
@@ -258,7 +258,7 @@ export class UsersService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'User not found',
},
HttpStatus.NOT_FOUND,
);
@@ -276,7 +276,7 @@ export class UsersService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'User not found',
},
HttpStatus.NOT_FOUND,
);
@@ -337,7 +337,7 @@ export class UsersService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'User not found',
},
HttpStatus.NOT_FOUND,
);
@@ -371,7 +371,7 @@ export class UsersService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'User not found',
},
HttpStatus.NOT_FOUND,
);