aboutsummaryrefslogtreecommitdiff
path: root/pkg/driver/volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/driver/volume.go')
-rw-r--r--pkg/driver/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/driver/volume.go b/pkg/driver/volume.go
index bd6ccd2..6ed52a8 100644
--- a/pkg/driver/volume.go
+++ b/pkg/driver/volume.go
@@ -75,7 +75,7 @@ func (vol *Volume) Publish(targetPath string, readOnly bool) error {
mounter := mount.New("")
if err := mounter.Mount(vol.stagingTargetPath, targetPath, "", mountOptions); err != nil {
- return nil
+ return err
}
vol.targetPaths[targetPath] = true