fix: inline error formatting

Co-authored-by: Filip Tibell <filip.tibell@gmail.com>
This commit is contained in:
Erica Marigold 2023-08-15 11:33:13 +05:30 committed by GitHub
parent 3ffc914bf5
commit d02683f622
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,10 +80,8 @@ pub async fn show_interface(cmd: Command) -> Result<ExitCode> {
break; break;
} }
Err(err) => { Err(err) => {
eprintln!("REPL ERROR: {}", err.to_string()); eprintln!("REPL ERROR: {err}");
return Ok(ExitCode::FAILURE);
// This isn't a good way to exit imo, once again
exit(1);
} }
}; };