Skip to content

Commit

Permalink
fix: return error code from client given by provider (#67)
Browse files Browse the repository at this point in the history
return error code from client given by provider

Signed-off-by: Robert Grassian <robert.grassian@split.io>
  • Loading branch information
rgrassian-split authored Sep 20, 2022
1 parent f8e2827 commit f0822b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/openfeature/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ func (c Client) evaluate(
)
err = fmt.Errorf("error code: %w", err)
c.errorHooks(hookCtx, providerInvocationClientApiHooks, err, options)
evalDetails.InterfaceResolutionDetail.ResolutionDetail = resolution.ResolutionDetail
return evalDetails, err
}
if resolution.Value != nil {
Expand Down

0 comments on commit f0822b6

Please sign in to comment.