Multi-expr repl improved

Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
teo3300
2023-06-07 18:50:31 +02:00
parent 54d196582f
commit ce21d3b728
2 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,7 @@ use crate::types::{MalErr, MalType};
fn READ(input: &str) -> Result<Vec<MalType>, MalErr> {
match read_str(input) {
Ok(ast) => Ok(ast),
Err(err) => Err(format!("Unexpected error during READ: {}", err)),
Err(err) => Err(format!("@ READ: {}", err)),
}
}