Skip to content

Commit d130708

Browse files
committed
add more clear mount error info
1 parent 0e2367b commit d130708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/blobfuse/nodeserver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ func (d *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
128128
cmd.Env = append(os.Environ(), "AZURE_STORAGE_ACCOUNT="+accountName, "AZURE_STORAGE_ACCESS_KEY="+accountKey)
129129
output, err := cmd.CombinedOutput()
130130
if err != nil {
131-
klog.Errorf("Mount failed with error: %v", string(output))
131+
err = fmt.Errorf("Mount failed with error: %v, output: %v", err, string(output))
132+
klog.Errorf("%v", err)
132133
notMnt, mntErr := d.mounter.IsLikelyNotMountPoint(targetPath)
133134
if mntErr != nil {
134135
klog.Errorf("IsLikelyNotMountPoint check failed: %v", mntErr)

0 commit comments

Comments
 (0)