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 7f59d6c9ee
commit 3d05fb0b3e
1 changed files with 2 additions and 0 deletions

View File

@ -1270,8 +1270,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) {