about summary refs log tree commit diff
path: root/tvix/eval/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-10-03T10·21+0300
committertazjin <tazjin@tvl.su>2022-10-04T21·04+0000
commitd6643f66b1cb8db5fc802ad53ef0d2633a51e815 (patch)
tree5e2fdcd5c5a9bed3969f6d4081e71bda389a175e /tvix/eval/src/main.rs
parent546f445f0788e35b8299f53e2c79d29180c73142 (diff)
feat(tvix/eval): use fancy error formatting in REPL r/5032
Change-Id: I8d5652d797b012bc3d5248ca2b2d0c87572dbf2e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6851
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'tvix/eval/src/main.rs')
-rw-r--r--tvix/eval/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs
index 351554c2d538..efd4d14c3b1a 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,