bug 8215: better formed exception body

This commit is contained in:
abhishek 2011-01-26 13:29:21 -08:00
parent b5d2ff71fc
commit 6aae1adc1b
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
UserVmVO userVm = _vmDao.findById(v.getInstanceId());
if(userVm != null) {
if(userVm.getState().equals(State.Destroyed) || userVm.getState().equals(State.Expunging)) {
throw new CloudRuntimeException("Creating snapshot failed due to volume:" + volumeId + " due to the associated vm:"+userVm.getInstanceName()+" is in "+userVm.getState().toString()+" state");
throw new CloudRuntimeException("Creating snapshot failed due to volume:" + volumeId + " is associated with vm:"+userVm.getInstanceName()+" which is in "+userVm.getState().toString()+" state");
}
}
}