diff options
| -rw-r--r-- | src/render/mod.rs | 2 | ||||
| -rw-r--r-- | src/repl/mod.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs index a0f996f..554353d 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -52,7 +52,7 @@ pub fn render_stream( } pub fn render_error(err: anyhow::Error, highlight: bool) { - let err = format!("{err:?}\n"); + let err = format!("{err:?}"); if highlight { let style = Style::new().fg(Color::Red); println!("{}", style.paint(err.trim())); diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 6dba38e..818a86a 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -103,6 +103,7 @@ impl Repl { } Err(err) => { render_error(err, self.config.read().highlight); + println!() } } } |
