aboutsummaryrefslogtreecommitdiff
path: root/item/validators.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 20:40:37 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-09-03 20:40:37 +0530
commitc6405a7633815042b89bf9de09dc6d78ee7df211 (patch)
tree482f0338f8420227868e44eb8f449b6ba0212a55 /item/validators.go
parent076dcc7633fd0537c0255a98a31a59ca6f5d9de4 (diff)
changed error message for brand not found when creating item
Diffstat (limited to 'item/validators.go')
-rw-r--r--item/validators.go2
1 files changed, 1 insertions, 1 deletions
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