Skip to content

Commit

Permalink
Update cache/volume_cache.go
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Arellano <[email protected]>
Signed-off-by: Joey Brown <[email protected]>
  • Loading branch information
joeybrown-sf and natalieparellano authored Jul 9, 2024
1 parent de0806a commit 1c304d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/volume_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (c *VolumeCache) ReuseLayer(diffID string) error {
return NewReadErr(fmt.Sprintf("Layer with SHA '%s' not found", diffID))
}
if os.IsPermission(err) {
return NewReadErr(fmt.Sprintf("Cannot read cache layer with SHA '%s' due to insufficient permissions", diffID))
return NewReadErr(fmt.Sprintf("failed to read cache layer with SHA '%s' due to insufficient permissions", diffID))
}
return fmt.Errorf("failed to re-use cache layer with SHA '%s': %w", diffID, err)
}
Expand Down

0 comments on commit 1c304d5

Please sign in to comment.