Skip to content

Commit

Permalink
Include the digest in reader failure errors
Browse files Browse the repository at this point in the history
This error is pretty cryptic, at least this way it will let us look for
things a little more
  • Loading branch information
mxmeinhold committed Aug 29, 2024
1 parent 7fcb47e commit bb2dd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/pkg/ociutil/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func CopyContent(ctx context.Context, from content.Provider, to content.Ingester

reader, err := from.ReaderAt(ctx, desc)
if err != nil {
return fmt.Errorf("failed to create reader from ingestor: %w", err)
return fmt.Errorf("failed to create reader for '%s' from ingestor: %w", desc.Digest.String(), err)
}

ref := desc.Digest.String()
Expand Down

0 comments on commit bb2dd45

Please sign in to comment.