mirror of https://github.com/apache/cloudstack.git
throw exception if stopping VM fails, then UI can show the error message in stead of fails silently
This commit is contained in:
parent
7f59d6c9ee
commit
3d05fb0b3e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue