From e15c20ec056df568d8cbbbb406370a708e80e9d8 Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Thu, 24 Jul 2014 13:59:57 -0700 Subject: [PATCH] CLOUDSTACK-4451: more descriptive error message to associateIpAddress API call identifying why zoneId can't be figured out --- .../api/command/user/address/AssociateIPAddrCmd.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java b/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java index 96174e12377..ae13717e427 100644 --- a/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/address/AssociateIPAddrCmd.java @@ -142,7 +142,8 @@ public class AssociateIPAddrCmd extends BaseAsyncCreateCmd { } } - throw new InvalidParameterValueException("Unable to figure out zone to assign ip to"); + throw new InvalidParameterValueException("Unable to figure out zone to assign ip to." + + " Please specify either zoneId, or networkId, or vpcId in the call"); } public Long getVpcId() {