Skip to content

Commit df05387

Browse files
authored
Merge pull request #55 from jfontan/fix/copypath
Some errors are lost in copyPath
2 parents 027dcea + 525bd90 commit df05387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper/mount/mount.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ func copyPath(src, dst billy.Basic, srcPath, dstPath string) error {
228228

229229
srcFile, err := src.Open(srcPath)
230230
if err != nil {
231-
return nil
231+
return err
232232
}
233233

234234
_, err = io.Copy(dstFile, srcFile)
235235
if err != nil {
236-
return nil
236+
return err
237237
}
238238

239239
err = dstFile.Close()

0 commit comments

Comments
 (0)