mirror of
https://github.com/ivabus/feval
synced 2024-12-05 05:05:07 +03:00
Update error handling for a more beautiful look
This commit is contained in:
parent
ebfe95e632
commit
2481dfd3aa
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ fn main_loop() {
|
|||
let result = evalexpr::eval(&input.trim());
|
||||
match result {
|
||||
Ok(succ_res) => println!("{}", succ_res),
|
||||
Err(_) => println!("Invalid input")
|
||||
Err(err) => println!("Error: {}", err)
|
||||
}
|
||||
input.clear();
|
||||
print!(">>> ");
|
||||
|
|
Loading…
Reference in a new issue