From 525bd90fb1f30c563314c891c4341ba3af157ded Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Tue, 27 Mar 2018 18:34:39 +0200 Subject: [PATCH] Some errors are lost in copyPath Signed-off-by: Javi Fontan --- helper/mount/mount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/mount/mount.go b/helper/mount/mount.go index 847d196..bb13da5 100644 --- a/helper/mount/mount.go +++ b/helper/mount/mount.go @@ -228,12 +228,12 @@ func copyPath(src, dst billy.Basic, srcPath, dstPath string) error { srcFile, err := src.Open(srcPath) if err != nil { - return nil + return err } _, err = io.Copy(dstFile, srcFile) if err != nil { - return nil + return err } err = dstFile.Close()