Skip to content

Commit

Permalink
Merge pull request #55 from jfontan/fix/copypath
Browse files Browse the repository at this point in the history
Some errors are lost in copyPath
  • Loading branch information
jfontan authored Apr 3, 2018
2 parents 027dcea + 525bd90 commit df05387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/mount/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit df05387

Please sign in to comment.