From 407aa4ae0d213e3e6de328f2600d95ade128b496 Mon Sep 17 00:00:00 2001 From: Pavel Antonov <antonov@perx.ru> Date: Mon, 9 Oct 2023 14:27:23 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- pkg/schema/field/number.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/schema/field/number.go b/pkg/schema/field/number.go index 5a00bd9b..1075ef2b 100644 --- a/pkg/schema/field/number.go +++ b/pkg/schema/field/number.go @@ -93,7 +93,7 @@ func (NumberType) decode(_ context.Context, field *Field, v interface{}) (interf return i, nil case float64: if i > maxInt || i < minInt { - return nil, errors.Errorf("the passed value %f must be in the range from %d to %d", i, maxInt, minInt) + return nil, errors.New("integer out of range") } return int64(math.Round(i)), nil } -- GitLab