feat(tvix/eval): use fancy error formatting in REPL
Change-Id: I8d5652d797b012bc3d5248ca2b2d0c87572dbf2e Reviewed-on: https://cl.tvl.fyi/c/depot/+/6851 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com>
This commit is contained in:
parent
546f445f07
commit
d6643f66b1
3 changed files with 16 additions and 9 deletions
|
|
@ -72,7 +72,7 @@ fn run_prompt(eval_options: tvix_eval::Options) {
|
|||
Ok(result) => {
|
||||
println!("=> {} :: {}", result, result.type_of());
|
||||
}
|
||||
Err(err) => println!("{}", err),
|
||||
Err(_) => { /* interpret takes care of error formatting */ }
|
||||
}
|
||||
}
|
||||
Err(ReadlineError::Interrupted) | Err(ReadlineError::Eof) => break,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue