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

@@ -216,7 +216,7 @@ export class ProductService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'Product not found',
},
HttpStatus.NOT_FOUND,
);
@@ -234,7 +234,7 @@ export class ProductService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'Product not found',
},
HttpStatus.NOT_FOUND,
);
@@ -283,7 +283,7 @@ export class ProductService {
throw new HttpException(
{
statusCode: HttpStatus.NOT_FOUND,
error: 'Data not found',
error: 'Product not found',
},
HttpStatus.NOT_FOUND,
);