diff options
Diffstat (limited to 'src/repl.c')
-rw-r--r-- | src/repl.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -49,8 +49,11 @@ static void repl_exec_command(context_t context, char *command) { } static void repl_exec_statement(context_t context, const char *statement) { - if (!interp_str(context, statement)) context_print_var_table(context); - else fprintf(stderr, "Error interpreting statement: %s\n", statement); + if (interp_str(context, statement)) { + fprintf(stderr, "Error interpreting statement: %s\n", statement); + return; + } + context_print_var_table(context); } void repl(void) { |