From d6643f66b1cb8db5fc802ad53ef0d2633a51e815 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 3 Oct 2022 13:21:28 +0300 Subject: 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 --- tvix/eval/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval/src/main.rs') diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs index 351554c2d5..efd4d14c3b 100644 --- a/tvix/eval/src/main.rs +++ b/tvix/eval/src/main.rs @@ -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, -- cgit 1.4.1