Skip to content

Commit 5d9fa5d

Browse files
author
Anthony Xu
committed
throw exception if stopping VM fails, then UI can show the error message in stead of fails silently
1 parent b77723d commit 5d9fa5d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎server/src/com/cloud/vm/VirtualMachineManagerImpl.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,10 @@ public <T extends VMInstanceVO> boolean advanceStop(T vm, boolean forced, User u
12621262

12631263
} catch (AgentUnavailableException e) {
12641264
s_logger.warn("Unable to stop vm, agent unavailable: " + e.toString());
1265+
throw e;
12651266
} catch (OperationTimedoutException e) {
12661267
s_logger.warn("Unable to stop vm, operation timed out: " + e.toString());
1268+
throw e;
12671269
} finally {
12681270
if (!stopped) {
12691271
if (!forced) {

0 commit comments

Comments
 (0)