Fix repl error message

This commit is contained in:
greg 2016-03-02 23:55:21 -08:00
parent 8b5d1ecd15
commit 3fe9ec95d5
1 changed files with 1 additions and 1 deletions

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 {