From 1bcf145f9386ecc03899983ee7b6a5f994ad64c7 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 16 May 2024 13:03:24 -0400 Subject: [PATCH] Clean up error display --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6d5a04f..f4fcbe1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ fn run_prompt() -> anyhow::Result<()> { let line = line_res.with_context(|| "failed to read input line")?; let run_res = jlox_rust::run(&line); if let Err(err) = run_res { - eprintln!("{err:?}"); + eprintln!("{err}"); } print_prompt()?;