bug 8219: better error message

status 8219: resolved fixed
This commit is contained in:
anthony 2011-02-03 15:57:36 -08:00
parent c26833fb8a
commit 4227d1525b
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
}
Long poolId = v.getPoolId();
if (poolId == null) {
throw new CloudRuntimeException("Volume: " + volumeId + " is empty, don't need to create a snapshot");
throw new CloudRuntimeException("You cannot take a snapshot of a volume until it has been attached to an instance");
}
VolumeVO volume = _volsDao.acquireInLockTable(volumeId, 10);
if( volume == null ) {