Skip to content

Commit 9cf6566

Browse files
committed
Re-use another message
1 parent d29973c commit 9cf6566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/argcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ mp_float_t mp_arg_validate_obj_float_non_negative(mp_obj_t float_in, mp_float_t
189189
? default_for_null
190190
: mp_obj_get_float(float_in);
191191
if (f <= (mp_float_t)0.0) {
192-
mp_raise_ValueError_varg(translate("%q must be >= 0"), arg_name);
192+
mp_raise_ValueError_varg(translate("%q must be >= %d"), arg_name, 0);
193193
}
194194
return f;
195195
}

0 commit comments

Comments
 (0)