From c6405a7633815042b89bf9de09dc6d78ee7df211 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 20:40:37 +0530 Subject: changed error message for brand not found when creating item --- item/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'item/validators.go') diff --git a/item/validators.go b/item/validators.go index e931843..b808ae4 100644 --- a/item/validators.go +++ b/item/validators.go @@ -105,7 +105,7 @@ func checkBrandOwnership(brandId, userId uint) error { // brand doesn't exist if brand.ID == 0 { - return errors.ErrBrandNotFound + return errors.ErrNotFound } // user doesn't own this brand -- cgit v1.2.3