Skip to content

Commit

Permalink
chore: change error message to slog
Browse files Browse the repository at this point in the history
  • Loading branch information
serhhatsari committed Sep 16, 2023
1 parent 2b4d905 commit ffc1df1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/askgpt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func main() {

err := cmdRoot.Execute()
if err != nil {
pterm.Error.Println(err)
return
slog.Error("Error executing command: %v", err)
}
}

Expand Down

0 comments on commit ffc1df1

Please sign in to comment.