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 55aa264 commit de0806a
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 @@ -187,7 +187,7 @@ func (c *VolumeCache) RetrieveLayerFile(diffID string) (string, error) {
path := diffIDPath(c.committedDir, diffID)
if _, err := os.Stat(path); 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))
}
return "", errors.Wrapf(err, "retrieving layer with SHA '%s'", diffID)
}
Expand Down

0 comments on commit de0806a

Please sign in to comment.