Skip to content

Commit

Permalink
chore: tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Oct 3, 2024
1 parent 7f53930 commit bb3015e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bb3015e

Please sign in to comment.