diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 13:34:12 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-08-16 17:41:35 -0700 |
| commit | 2cd166b57370ab4877ec2d9666225faeac6127ce (patch) | |
| tree | 645f851b1121ce7f52f4b4cf894844e965c4584d /extmod/modujson.c | |
| parent | 137a30ad75803255615a422c15ebcd35fbd31130 (diff) | |
Fix esp and samd
Diffstat (limited to 'extmod/modujson.c')
| -rw-r--r-- | extmod/modujson.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extmod/modujson.c b/extmod/modujson.c index 830b588fd..ea6c8b40f 100644 --- a/extmod/modujson.c +++ b/extmod/modujson.c @@ -32,6 +32,8 @@ #include "py/runtime.h" #include "py/stream.h" +#include "supervisor/shared/translate.h" + #if MICROPY_PY_UJSON STATIC mp_obj_t mod_ujson_dump(mp_obj_t obj, mp_obj_t stream) { @@ -276,7 +278,7 @@ STATIC mp_obj_t mod_ujson_load(mp_obj_t stream_obj) { return stack_top; fail: - mp_raise_ValueError("syntax error in JSON"); + mp_raise_ValueError(translate("syntax error in JSON")); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_ujson_load_obj, mod_ujson_load); |
