From 1269bc56827df7477cc78f1fef353f3017491a66 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Sat, 2 Jun 2018 15:33:26 +0900 Subject: [PATCH] snapshot: wrap mount err Signed-off-by: Akihiro Suda --- snapshot/localmounter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshot/localmounter.go b/snapshot/localmounter.go index 732244168b80..18e2411cfc90 100644 --- a/snapshot/localmounter.go +++ b/snapshot/localmounter.go @@ -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