From bb3015e9d1f56b86603722a9fff0c793f681c267 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Thu, 3 Oct 2024 14:04:50 -0700 Subject: [PATCH] chore: tidy --- error.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/error.go b/error.go index e3bee23..56526c9 100644 --- a/error.go +++ b/error.go @@ -13,10 +13,8 @@ var ( ) func printError(title string, err error) { - fmt.Printf("%s\n", lipgloss.JoinHorizontal(lipgloss.Center, errorHeader.String(), title)) - rendered := errorDetails.Render(err.Error()) - fmt.Println(rendered) - fmt.Printf("%s\n", rendered) + fmt.Println(lipgloss.JoinHorizontal(lipgloss.Center, errorHeader.String(), title)) + fmt.Println(errorDetails.Render(err.Error())) } func printErrorFatal(title string, err error) {