Skip to content

Commit 183bb8e

Browse files
committed
add error logging
1 parent 8238981 commit 183bb8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gce-pd-csi-driver/controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (gceCS *GCEControllerServer) CreateVolume(ctx context.Context, req *csi.Cre
181181
}
182182

183183
if !ready {
184-
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume existing disk %v is not ready", volKey))
184+
return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume existing disk %v is not ready. The existing disk %v has status %v. ", volKey, existingDisk, existingDisk.GetStatus()))
185185
}
186186

187187
// If there is no validation error, immediately return success

0 commit comments

Comments
 (0)