From 4227d1525b4e7a3666ee1467e61c15f012c84522 Mon Sep 17 00:00:00 2001 From: anthony Date: Thu, 3 Feb 2011 15:57:36 -0800 Subject: [PATCH] bug 8219: better error message status 8219: resolved fixed --- server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index fb9ec416401..ad09fbf6f0d 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -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 ) {