Skip to content

Commit 3e86314

Browse files
committed
Fix digest formatting in soci index remove error
Signed-off-by: Austin Vazquez <[email protected]>
1 parent c098211 commit 3e86314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soci/artifacts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ func (db *ArtifactsDb) RemoveArtifactEntryByIndexDigest(digest []byte) error {
355355

356356
dgstBucket := bucket.Bucket(digest)
357357
if dgstBucket == nil {
358-
return fmt.Errorf("the index of the digest %v doesn't exist", digest)
358+
return fmt.Errorf("the index of the digest %s doesn't exist", digest)
359359
}
360360

361361
if indexBucket(dgstBucket) {
362362
return bucket.DeleteBucket(digest)
363363
}
364-
return fmt.Errorf("the digest %v does not correspond to an index", digest)
364+
return fmt.Errorf("the digest %s does not correspond to an index", digest)
365365
})
366366
}
367367

0 commit comments

Comments
 (0)