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
b77723df13
commit
5d9fa5d42e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue