Skip to content
Snippets Groups Projects
Commit 407aa4ae authored by Pavel Antonov's avatar Pavel Antonov :asterisk: Committed by Alex Petraky
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 7002c7a2
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment