From d02683f62243c3a593bde5619ec145782165edf6 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 15 Aug 2023 11:33:13 +0530 Subject: [PATCH] fix: inline error formatting Co-authored-by: Filip Tibell --- src/cli/repl.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cli/repl.rs b/src/cli/repl.rs index 457cbb4..c97ce05 100644 --- a/src/cli/repl.rs +++ b/src/cli/repl.rs @@ -80,10 +80,8 @@ pub async fn show_interface(cmd: Command) -> Result { break; } Err(err) => { - eprintln!("REPL ERROR: {}", err.to_string()); - - // This isn't a good way to exit imo, once again - exit(1); + eprintln!("REPL ERROR: {err}"); + return Ok(ExitCode::FAILURE); } };