Skip to content

Commit

Permalink
Merge pull request #426 from AkihiroSuda/wrap-mount-err
Browse files Browse the repository at this point in the history
snapshot: wrap mount err
  • Loading branch information
tonistiigi authored Jun 2, 2018
2 parents c2a35a5 + 1269bc5 commit b14fd54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot/localmounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (lm *localMounter) Mount() (string, error) {

if err := mount.All(lm.mounts, dir); err != nil {
os.RemoveAll(dir)
return "", err
return "", errors.Wrapf(err, "failed to mount %s: %+v", dir, lm.mounts)
}
lm.target = dir
return dir, nil
Expand Down

0 comments on commit b14fd54

Please sign in to comment.