Skip to content

Commit 9443d2e

Browse files
committed
fix exception messages
1 parent 825da14 commit 9443d2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3201,7 +3201,7 @@ private Volume orchestrateDetachVolumeFromVM(long vmId, long volumeId) {
32013201
try {
32023202
answer = _agentMgr.send(hostId, cmd);
32033203
} catch (AgentUnavailableException e) {
3204-
throw new CloudRuntimeException(String.format("%s. Please contact your system administrator. ", errorMsg));
3204+
throw new CloudRuntimeException(String.format("%s. Please contact your system administrator.", errorMsg));
32053205
} catch (Exception e) {
32063206
throw new CloudRuntimeException(errorMsg + " due to: " + e.getMessage());
32073207
}
@@ -4714,7 +4714,7 @@ private VolumeVO sendAttachVolumeCommand(UserVmVO vm, VolumeVO volumeToAttach, L
47144714
if (host != null) {
47154715
volService.revokeAccess(volFactory.getVolume(volumeToAttach.getId()), host, dataStore);
47164716
}
4717-
throw new CloudRuntimeException(String.format("%s. Please, contact your system administrator", errorMsg));
4717+
throw new CloudRuntimeException(String.format("%s. Please contact your system administrator.", errorMsg));
47184718
} catch (Exception e) {
47194719
if (host != null) {
47204720
volService.revokeAccess(volFactory.getVolume(volumeToAttach.getId()), host, dataStore);

0 commit comments

Comments
 (0)