fix exception message

changed the exception message to include accountName instead of account, since account at this point is known to be null

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Signed-off-by: Chiradeep Vittal <chiradeep@apache.org>
This commit is contained in:
Laszlo Hornyak 2013-08-27 21:16:36 +02:00 committed by Chiradeep Vittal
parent b68dd4cf94
commit 3fe468cc28
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ public class CreateLoadBalancerRuleCmd extends BaseAsyncCreateCmd /*implements
if (account != null) {
return account.getId();
} else {
throw new InvalidParameterValueException("Unable to find account " + account + " in domain id=" + domainId);
throw new InvalidParameterValueException("Unable to find account " + accountName + " in domain id=" + domainId);
}
} else {
throw new InvalidParameterValueException("Can't define IP owner. Either specify account/domainId or publicIpId");