Skip to content

Commit 4cc23f0

Browse files
committed
Filter out user errors from GetDisk error returned from ControllerPublishVolume
1 parent 15862fe commit 4cc23f0

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
@@ -578,7 +578,7 @@ func (gceCS *GCEControllerServer) executeControllerPublishVolume(ctx context.Con
578578
if gce.IsGCENotFoundError(err) {
579579
return nil, status.Errorf(codes.NotFound, "Could not find disk %v: %v", volKey.String(), err.Error()), diskType
580580
}
581-
return nil, status.Errorf(codes.Internal, "Failed to getDisk: %v", err.Error()), diskType
581+
return nil, common.LoggedError("Failed to getDisk: ", err), diskType
582582
}
583583
instanceZone, instanceName, err := common.NodeIDToZoneAndName(nodeID)
584584
if err != nil {

0 commit comments

Comments
 (0)