You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
py: Fix printing of error message when parsing malformed integer.
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ value_error:
|
||||
raise(exc, lex);
|
||||
} else {
|
||||
mp_obj_t exc = mp_obj_new_exception_msg_varg(&mp_type_ValueError,
|
||||
"invalid syntax for integer with base %d: '%s'", base, str_val_start);
|
||||
"invalid syntax for integer with base %d: '%.*s'", base, top - str_val_start, str_val_start);
|
||||
raise(exc, lex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user