Skip to content

Commit

Permalink
fix(hok): print ending newline for error report
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Aug 9, 2023
1 parent 3b50494 commit d1f5682
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ fn error<T: Display>(input: &T) -> io::Result<()> {
.execute(SetForegroundColor(Color::Red))?
.execute(Print("ERROR "))?
.execute(SetForegroundColor(Color::Reset))?
.execute(Print(input))?;
.execute(Print(input))?
.execute(Print("\n"))?;
Ok(())
}

Expand Down

0 comments on commit d1f5682

Please sign in to comment.