diff --git a/pkg/items/item.go b/pkg/items/item.go index 42fc06821e8e01298199e6cd4d0c43e0bf4907ac..6024b0c638288664d2673be2aecd214fa2e1693f 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")