From 072023dafb24fa5e095076256402ff97c2dfb4a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Fri, 22 Dec 2023 06:04:55 +0100 Subject: [PATCH] chore: update err message - LenError --- internal/domain/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/domain/validators.go b/internal/domain/validators.go index 34cde52..6119480 100644 --- a/internal/domain/validators.go +++ b/internal/domain/validators.go @@ -13,7 +13,7 @@ type LenError struct { var _ ErrorWithParams = LenError{} func (e LenError) Error() string { - return fmt.Sprintf("sort length must be between %d and %d (current length: %d)", e.Min, e.Max, e.Current) + return fmt.Sprintf("length must be between %d and %d (current length: %d)", e.Min, e.Max, e.Current) } func (e LenError) Code() ErrorCode {