summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/embed/abort_.c4
-rwxr-xr-xlib/utils/pyexec.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/embed/abort_.c b/lib/embed/abort_.c
index 2fba0de4e..3eeb42d9e 100644
--- a/lib/embed/abort_.c
+++ b/lib/embed/abort_.c
@@ -1,7 +1,9 @@
#include <py/runtime.h>
+#include "supervisor/shared/translate.h"
+
NORETURN void abort_(void);
NORETURN void abort_(void) {
- mp_raise_msg(&mp_type_RuntimeError, "abort() called");
+ mp_raise_msg(&mp_type_RuntimeError, translate("abort() called"));
}
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c
index 8cd9848ca..e637fe544 100755
--- a/lib/utils/pyexec.c
+++ b/lib/utils/pyexec.c
@@ -94,7 +94,7 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
// Clear the parse tree because it has a heap pointer we don't need anymore.
*((uint32_t volatile*) &parse_tree.chunk) = 0;
#else
- mp_raise_msg(&mp_type_RuntimeError, "script compilation not supported");
+ mp_raise_msg(&mp_type_RuntimeError, translate("script compilation not supported"));
#endif
}