Skip to content

Commit

Permalink
caplin: Fix nil panic during error handling (#13333)
Browse files Browse the repository at this point in the history
Fixes #13332
  • Loading branch information
shohamc1 authored Jan 6, 2025
1 parent 32da1c9 commit dc547a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cl/beacon/beaconhttp/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func HandleEndpoint[T any](h EndpointHandler[T]) http.HandlerFunc {
var e *EndpointError
if errors.As(err, &e) {
endpointError = e
} else {
endpointError = WrapEndpointError(err)
}
endpointError.WriteTo(w)
return
Expand Down

0 comments on commit dc547a8

Please sign in to comment.