Skip to content

Commit

Permalink
fix error handling logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
hchienjo committed Mar 5, 2024
1 parent d32fab6 commit a911253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avroregistry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ func (r *Registry) doRequest(req *http.Request, result interface{}) error {
// unavailable service that we're reaching
// through a proxy).
if apiErr.StatusCode/100 == 5 {
return apiErr
} else {
err = &UnavailableError{apiErr}
} else {
return apiErr
}
}

Expand Down

0 comments on commit a911253

Please sign in to comment.