Skip to content

Commit

Permalink
lib/utils/pyexec: Add missing MP_ERROR_TEXT when compiler disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Jun 2, 2020
1 parent 203b107 commit b2030e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/pyexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b2030e1

Please sign in to comment.