aboutsummaryrefslogtreecommitdiff
path: root/src/repl.c
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-22 07:25:16 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-22 07:25:16 +0200
commit3369805cc122788edf2bd6d3d0cebef7c153d638 (patch)
tree599b08b8ad8721354539163bed3ce9c3a270ca06 /src/repl.c
parentb8006ecd24830c849a989554b059bc452371e5b2 (diff)
downloadimp-3369805cc122788edf2bd6d3d0cebef7c153d638.tar.gz
imp-3369805cc122788edf2bd6d3d0cebef7c153d638.zip
interpreter error propagation
Diffstat (limited to 'src/repl.c')
-rw-r--r--src/repl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repl.c b/src/repl.c
index f6387a2..8fbbd2f 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -50,6 +50,7 @@ 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);
}
void repl(void) {