Fix error formatting for GetInput

Signed-off-by: Nic Cope <nicc@rk0n.org>
This commit is contained in:
Nic Cope 2024-02-17 10:34:10 -08:00
parent 97d0983aae
commit 1335c4bd9c
1 changed files with 1 additions and 1 deletions

View File

@ -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.