lib/utils/pyexec: Add missing MP_ERROR_TEXT when compiler disabled.

This commit is contained in:
Damien George 2020-05-30 07:34:40 +10:00
parent 203b10703e
commit b2030e1661
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ STATIC int parse_compile_execute(const void *source, mp_parse_input_kind_t input
mp_parse_tree_t parse_tree = mp_parse(lex, input_kind);
module_fun = mp_compile(&parse_tree, source_name, exec_flags & EXEC_FLAG_IS_REPL);
#else
mp_raise_msg(&mp_type_RuntimeError, "script compilation not supported");
mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("script compilation not supported"));
#endif
}