From 3fe9ec95d5714ef29bd29bbcf1c20118a5481f98 Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 2 Mar 2016 23:55:21 -0800 Subject: [PATCH] Fix repl error message --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 13b71e1..a3b7a07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -91,7 +91,7 @@ fn repl_handler(input: &str, state: &mut InterpreterState) -> String { let ast = match parse(&tokens, &[]) { Ok(ast) => ast, - Err(err) => return err.msg + Err(err) => return format!("Parse error: {}", err.msg), }; if state.show_parse {