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); } };