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 2c58c8d commit 55aa264
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 @@ -166,7 +166,7 @@ func (c *VolumeCache) RetrieveLayer(diffID string) (io.ReadCloser, error) {
file, err := os.Open(path)
if err != nil {
if os.IsPermission(err) {
return nil, NewReadErr(fmt.Sprintf("cannot read cache layer with SHA '%s' due to insufficient permissions", diffID))
return nil, NewReadErr(fmt.Sprintf("failed to read cache layer with SHA '%s' due to insufficient permissions", diffID))
}
return nil, NewReadErr(fmt.Sprintf("unknown error retrieving layer with SHA '%s'", diffID))
}
Expand Down

0 comments on commit 55aa264

Please sign in to comment.