Skip to content

Commit 85a4c14

Browse files
committed
Improve message "Network is unavailable. Please contact administrator"
This trivial change provide more details for root administrators during troubleshooting. See discussion #11980
1 parent a50de02 commit 85a4c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ public void start(final String vmUuid, final Map<VirtualMachineProfile.Param, Ob
935935
throw new CloudRuntimeException(String.format("Unable to start a VM [%s] due to [%s].", vmUuid, e.getMessage()), e).add(VirtualMachine.class, vmUuid);
936936
} catch (final ResourceUnavailableException e) {
937937
if (e.getScope() != null && e.getScope().equals(VirtualRouter.class)){
938-
throw new CloudRuntimeException("Network is unavailable. Please contact administrator", e).add(VirtualMachine.class, vmUuid);
938+
throw new CloudRuntimeException("The Guest Network is unavailable. Please contact administrator", e.getMessage()).add(VirtualMachine.class, vmUuid);
939939
}
940940
throw new CloudRuntimeException(String.format("Unable to start a VM [%s] due to [%s].", vmUuid, e.getMessage()), e).add(VirtualMachine.class, vmUuid);
941941
}

0 commit comments

Comments
 (0)