Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
854c8c01
Commit
854c8c01
authored
Oct 05, 2014
by
Damien George
Browse files
unix: Detect and print compile error.
parent
d03c6816
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/main.c
View file @
854c8c01
...
...
@@ -113,8 +113,9 @@ STATIC int execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind,
mp_obj_t
module_fun
=
mp_compile
(
pn
,
source_name
,
emit_opt
,
is_repl
);
if
(
m
odule_fun
==
mp_const_none
)
{
if
(
m
p_obj_is_exception_instance
(
module_fun
)
)
{
// compile error
mp_obj_print_exception
(
module_fun
);
return
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment