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 <narellano@vmware.com>
Signed-off-by: Joey Brown <brown.joseph@salesforce.com>
  • Loading branch information
joeybrown-sf and natalieparellano authored Jul 9, 2024
1 parent 1c304d5 commit 80d089f
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 @@ -144,7 +144,7 @@ func (c *VolumeCache) ReuseLayer(diffID string) error {

if _, err := os.Stat(committedPath); err != nil {
if os.IsNotExist(err) {
return NewReadErr(fmt.Sprintf("Layer with SHA '%s' not found", diffID))
return NewReadErr(fmt.Sprintf("failed to find cache layer with SHA '%s'", diffID))
}
if os.IsPermission(err) {
return NewReadErr(fmt.Sprintf("failed to read cache layer with SHA '%s' due to insufficient permissions", diffID))
Expand Down

0 comments on commit 80d089f

Please sign in to comment.