Skip to content

Commit

Permalink
fix: errTyp
Browse files Browse the repository at this point in the history
Signed-off-by: sivchari <[email protected]>
  • Loading branch information
sivchari committed Jul 16, 2024
1 parent e594fc8 commit 20cdcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runtime/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (c *client) CallExtension(ctx context.Context, hook runtimecatalog.Hook, fo
// If the error is errCallingExtensionHandler then apply failure policy to calculate
// the effective result of the operation.
ignore := *registration.FailurePolicy == runtimev1.FailurePolicyIgnore
var errTyp errCallingExtensionHandler
var errTyp *errCallingExtensionHandler
if errors.As(err, &errTyp) && ignore {
// Update the response to a default success response and return.
log.Info(fmt.Sprintf("ignoring error calling extension handler because of FailurePolicy %q", *registration.FailurePolicy))
Expand Down

0 comments on commit 20cdcbd

Please sign in to comment.