Fix repl error message

This commit is contained in:
greg 2016-03-02 23:55:21 -08:00
parent 8b5d1ecd15
commit 3fe9ec95d5

View File

@ -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 {