mirror of
https://github.com/containers/image.git
synced 2025-04-18 19:44:05 +03:00
Fix an index in an error message
Make it 1-based, like in the other error message. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
99cfcca7c0
commit
14d63ee7c8
@ -106,7 +106,7 @@ func (c *copier) createSignatures(ctx context.Context, manifest []byte, identity
|
||||
if len(c.signers) == 1 {
|
||||
return nil, fmt.Errorf("creating signature: %w", err)
|
||||
} else {
|
||||
return nil, fmt.Errorf("creating signature %d: %w", signerIndex, err)
|
||||
return nil, fmt.Errorf("creating signature %d: %w", signerIndex+1, err)
|
||||
}
|
||||
}
|
||||
res = append(res, newSig)
|
||||
|
Loading…
x
Reference in New Issue
Block a user