From d1f56822a1db93cf566265b3ec44082794896422 Mon Sep 17 00:00:00 2001 From: Chawye Hsu Date: Wed, 9 Aug 2023 17:29:40 +0800 Subject: [PATCH] fix(hok): print ending newline for error report Signed-off-by: Chawye Hsu --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3cb27e6..effd559 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,8 @@ fn error(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(()) }