Skip to content

Commit 8963fb3

Browse files
authored
Merge pull request #146 from c3y1huang/c3y1/fix/NodePublishVolume-does-not-return-err
Return error when NodePublishVolume mount fails
2 parents 3acaee0 + 4b49fd5 commit 8963fb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/hostpath/nodeserver.go

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
181181
errList.WriteString(fmt.Sprintf(" :%s", rmErr.Error()))
182182
}
183183
}
184+
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to mount device: %s at %s: %s", path, targetPath, errList.String()))
184185
}
185186
}
186187

0 commit comments

Comments
 (0)