throw exception if stopping VM fails, then UI can show the error message in stead of fails silently

This commit is contained in:
Anthony Xu 2013-07-22 16:12:44 -07:00
parent b77723df13
commit 5d9fa5d42e
1 changed files with 2 additions and 0 deletions

View File

@ -1262,8 +1262,10 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
} catch (AgentUnavailableException e) {
s_logger.warn("Unable to stop vm, agent unavailable: " + e.toString());
throw e;
} catch (OperationTimedoutException e) {
s_logger.warn("Unable to stop vm, operation timed out: " + e.toString());
throw e;
} finally {
if (!stopped) {
if (!forced) {