Skip to content

Commit fec6f26

Browse files
lucas-a-martinsLucas Martins
authored andcommitted
Remove info about the environment from exception when revert VM snapshot (apache#9944)
Co-authored-by: Lucas Martins <[email protected]>
1 parent 8dcc7da commit fec6f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/DefaultVMSnapshotStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public boolean revertVMSnapshot(VMSnapshot vmSnapshot) {
419419
if (answer != null && answer.getDetails() != null)
420420
errMsg = errMsg + " due to " + answer.getDetails();
421421
logger.error(errMsg);
422-
throw new CloudRuntimeException(errMsg);
422+
throw new CloudRuntimeException(String.format("Unable to revert VM %s to snapshot %s.", userVm.getInstanceName(), vmSnapshotVO.getName()));
423423
}
424424
} catch (OperationTimedoutException e) {
425425
logger.debug("Failed to revert vm snapshot", e);

0 commit comments

Comments
 (0)