Skip to content

Commit 8c03a92

Browse files
bug: handle missing coserv signer
Signed-off-by: Thomas Fossati <[email protected]>
1 parent c013343 commit 8c03a92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vts/trustedservices/trustedservices_grpc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ func (o *GRPC) GetEndorsements(ctx context.Context, query *proto.EndorsementQuer
761761
if err != nil {
762762
return getEndorsementsError(fmt.Errorf("could not sign CoSERV response: %w", err)), nil
763763
}
764+
} else {
765+
return getEndorsementsError(errors.New("no CoSERV signer configured")), nil
764766
}
765767
}
766768

0 commit comments

Comments
 (0)