1
0
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:
Miloslav Trmač 2024-08-23 02:59:13 +02:00
parent 99cfcca7c0
commit 14d63ee7c8

View File

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