Fix repl error message
This commit is contained in:
parent
8b5d1ecd15
commit
3fe9ec95d5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user