Skip to content

Commit

Permalink
snapshot: wrap mount err
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Jun 2, 2018
1 parent 33d54ee commit 1269bc5
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 1269bc5

Please sign in to comment.