diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-01-31 12:21:46 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-01-31 12:21:46 -0500 |
| commit | d8016bd52bb2feefab0c01038d5085c1d9116433 (patch) | |
| tree | fb4f30d2a658102f86e746987959877b7213508b /py/objstr.c | |
| parent | 947c2243bdc88fed001723939ed6f91851236e8d (diff) | |
| parent | d378bebaa387b2dbfa688ee2924385a5b7176b11 (diff) | |
Merge branch 'master' into stm32-loader-linkers
Diffstat (limited to 'py/objstr.c')
| -rw-r--r-- | py/objstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.c b/py/objstr.c index fde264681..a60f507e9 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -1352,7 +1352,7 @@ STATIC vstr_t mp_obj_str_format_helper(const char *str, const char *top, int *ar terse_str_format_value_error(); } else { mp_raise_ValueError_varg( - translate("unknown format code '%c' for object of type 'float'"), + translate("unknown format code '%c' for object of type '%s'"), type, mp_obj_get_type_str(arg)); } } @@ -1388,7 +1388,7 @@ STATIC vstr_t mp_obj_str_format_helper(const char *str, const char *top, int *ar terse_str_format_value_error(); } else { mp_raise_ValueError_varg( - translate("unknown format code '%c' for object of type 'str'"), + translate("unknown format code '%c' for object of type '%s'"), type, mp_obj_get_type_str(arg)); } } |
