Skip to content

Commit 525bd90

Browse files
committed
Some errors are lost in copyPath
Signed-off-by: Javi Fontan <[email protected]>
1 parent 027dcea commit 525bd90

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)