Skip to content

Commit 4b49fd5

Browse files
committed
Return error when NodePublishVolume mount fails
Signed-off-by: Chin-Ya Huang <[email protected]>
1 parent 7691a85 commit 4b49fd5

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)