Skip to content

Commit 7e1808c

Browse files
committed
error handling
1 parent a302a47 commit 7e1808c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instance.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ func SetUpInstance(ctx context.Context, opts InstanceOptions) (*Instance, error)
8787

8888
timeSource := new(SystemTimeSource)
8989
cpSigner, err := NewCpSigner(cfg.Signer, cfg.Origin, timeSource)
90+
if err != nil {
91+
return nil, fmt.Errorf("failed to create checkpoint signer: %v", err)
92+
}
9093

9194
if opts.CreateStorage == nil {
9295
return nil, fmt.Errorf("failed to initiate storage backend: nil createStorage")

0 commit comments

Comments
 (0)