Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zdevaty committed Feb 26, 2024
1 parent f34b2e3 commit d39102c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func LogError(err error) {
if err != nil {
var genErr *api.GenericOpenAPIError
if errors.As(err, &genErr) {
log.Error("api", "Error requesting API: %v (Response: %v)", genErr.Error(), string(genErr.Body()))
log.Error("api", "Error requesting API: %v (Response: %v)", err.Error(), string(genErr.Body()))
} else {
log.Error("api", "Error requesting API: %v", err.Error())
}
Expand Down

0 comments on commit d39102c

Please sign in to comment.