commit | df053870ae7070b0350624ba5a22161ba3796cc0 | [log] [tgz] |
---|---|---|
author | Javi Fontan <jfontan@gmail.com> | Tue Apr 03 08:40:37 2018 |
committer | GitHub <noreply@github.com> | Tue Apr 03 08:40:37 2018 |
tree | 711ff08c91bdebbb4555d6d2209daa6ddc87da16 | |
parent | 027dceab1aa836eb310d92c2eb2266e4dc9f4b81 [diff] | |
parent | 525bd90fb1f30c563314c891c4341ba3af157ded [diff] |
Merge pull request #55 from jfontan/fix/copypath Some errors are lost in copyPath
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 @@ 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()