CLOUDSTACK-7467 (this part of the ticket is related to augmenting an error message)

This commit is contained in:
Mike Tutkowski 2014-09-02 12:50:22 -06:00
parent c200ada863
commit ba41f230e1

View File

@ -738,7 +738,7 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
if (newSize != null) {
if (!diskOffering.isCustomized() && !volume.getVolumeType().equals(Volume.Type.ROOT)) {
throw new InvalidParameterValueException("To change a volume's size without providing a new disk offering, its current disk offering must be " +
"customizable or it must be a root volume.");
"customizable or it must be a root volume (if providing a disk offering, make sure it is different from the current disk offering).");
}
// convert from bytes to GiB