better log when deploy vm failed

This commit is contained in:
frank 2011-12-19 15:49:56 -08:00
parent 6d320507fd
commit 8ef2724c26
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
}
} catch (Exception e) {
s_logger.error("Failed to start instance " + vm, e);
throw new AgentUnavailableException("Unable to start instance", destHostId, e);
throw new AgentUnavailableException("Unable to start instance due to " + e.getMessage(), destHostId, e);
} finally {
if (startedVm == null && canRetry) {
_workDao.updateStep(work, Step.Release);