Skip to content

Commit

Permalink
Merge pull request #128 from negz/error-error
Browse files Browse the repository at this point in the history
Fix error formatting for GetInput
  • Loading branch information
negz authored Feb 28, 2024
2 parents 97d0983 + 1335c4b commit 0b5c830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

// GetInput from the supplied request. Input is loaded into the supplied object.
func GetInput(req *v1beta1.RunFunctionRequest, into runtime.Object) error {
return errors.Wrap(resource.AsObject(req.GetInput(), into), "cannot get Function input %T from %T, into, req")
return errors.Wrapf(resource.AsObject(req.GetInput(), into), "cannot get function input %T from %T", into, req)
}

// GetContextKey gets context from the supplied key.
Expand Down

0 comments on commit 0b5c830

Please sign in to comment.