add and clear err message in RemoveVolumeFromReportAsAttached

This commit is contained in:
NickrenREN
2017-03-01 15:29:44 +08:00
committed by NickrenREN
parent b33c8153eb
commit 0861688237
2 changed files with 8 additions and 2 deletions

View File

@@ -424,7 +424,7 @@ func (asw *actualStateOfWorld) removeVolumeFromReportAsAttached(
return nil
}
}
return fmt.Errorf("volume %q or node %q does not exist in volumesToReportAsAttached list",
return fmt.Errorf("volume %q does not exist in volumesToReportAsAttached list or node %q does not exist in nodesToUpdateStatusFor list",
volumeName,
nodeName)