Skip to content

Commit

Permalink
errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krav committed Apr 17, 2024
1 parent b9f370c commit cf2cd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func unmarshalApiErrorObject(data []byte) (APIErrorObject, error) {
return aeo, nil
}
// still failed, so return the original error
return aeo, err
return aeo, fmt.Errorf(string(data))
}

// NullAPIErrorObject is a wrapper around the APIErrorObject type. If the Valid
Expand Down

0 comments on commit cf2cd16

Please sign in to comment.