From 6b339e7496acb0642fea52300ddddf1b739714af Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 31 Oct 2024 23:05:18 +0200 Subject: [PATCH] Rephrase ERROR_CATEGORY_PARENT_NOT_FOUND error in db package --- db/category.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/category.go b/db/category.go index 67f4d24..9b73696 100644 --- a/db/category.go +++ b/db/category.go @@ -17,7 +17,7 @@ type Category struct { } var ( - ERROR_CATEGORY_PARENT_NOT_FOUND = errors.New("ParentID is invalid for user") + ERROR_CATEGORY_PARENT_NOT_FOUND = errors.New("Can't find Category with ParentID for user") ERROR_CATEGORY_NAME_NOT_UNIQUE = errors.New("Name for Category have to be unique for user") ERROR_CATEGORY_USER_ID_NOT_EQUAL = errors.New("ParentID is invalid for user") )