Skip to content

Commit

Permalink
fix: return fatal instead of erroring out
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
  • Loading branch information
phisco committed Mar 29, 2024
1 parent 6f03cd6 commit cf4ac27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ
// Sorting is required for determinism.
verifiedExtras, err := verifyAndSortExtras(in, extraResources)
if err != nil {
return nil, errors.Wrapf(err, "sorting and verifying results")
response.Fatal(rsp, errors.Errorf("verifying and sorting extra resources: %w", err))
return rsp, nil
}

// For now cheaply convert to JSON for serializing.
Expand Down

0 comments on commit cf4ac27

Please sign in to comment.