From 4520c8be849d043563a62440f401f9ad24532f5e Mon Sep 17 00:00:00 2001 From: Semyon Krestyaninov <krestyaninov@perx.ru> Date: Mon, 9 Jun 2025 16:14:48 +0300 Subject: [PATCH] fix error message --- pkg/items/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/items/item.go b/pkg/items/item.go index 42fc0682..6024b0c6 100644 --- a/pkg/items/item.go +++ b/pkg/items/item.go @@ -243,7 +243,7 @@ func ToMap(item *Item, sch *schema.Schema) (map[string]any, error) { // Вычисляемые поля игнорируются при декодировании. func FromMap(input map[string]any, sch *schema.Schema) (*Item, error) { if len(input) == 0 { - return nil, errors.New("input map must not be nil") + return nil, errors.New("input map must not be empty or nil") } if sch == nil { return nil, errors.New("schema must not be nil") -- GitLab