bug 7088: returning right error msg for assocIp failure

This commit is contained in:
abhishek 2010-11-12 15:31:08 -08:00
parent 9527b40d1f
commit d8fdcd3815

View File

@ -723,7 +723,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
DomainRouterVO router = _routerMgr.getRouter(accountId, zoneId);
if (router == null) {
throw new InvalidParameterValueException("No router found for account: " + accountToLock.getAccountName() + ".");
throw new InvalidParameterValueException("No router found for account: " + accountToLock.getAccountName() + ". Please create a VM before acquiring an IP");
}
txn.start();