bug 6031: Fixing the error msg when the deployment of a directly attached vm fails

status 6031: resolved fixed
This commit is contained in:
abhishek 2010-09-02 10:48:15 -07:00
parent d16f0b9ddf
commit 254381d41b
1 changed files with 3 additions and 1 deletions

View File

@ -2725,6 +2725,8 @@ public class UserVmManagerImpl implements UserVmManager {
else
{
s_logger.debug("failed to create VM instance : " + name);
throw new InternalErrorException("We could not find a suitable pool for creating this directly attached vm");
}
return null;
}
@ -2757,7 +2759,7 @@ public class UserVmManagerImpl implements UserVmManager {
_accountMgr.decrementResourceCount(account.getId(), ResourceType.volume, numVolumes);
s_logger.error("Unable to create vm", th);
throw new CloudRuntimeException("Unable to create vm", th);
throw new CloudRuntimeException("Unable to create vm: "+th.getMessage(), th);
}
}