diff options
| author | Jesse Andrews <anotherjesse@gmail.com> | 2010-10-25 10:43:03 -0700 |
|---|---|---|
| committer | Jesse Andrews <anotherjesse@gmail.com> | 2010-10-25 10:43:03 -0700 |
| commit | 02e0b75e85f753043fc71ac2e0714ec4d4b0cca8 (patch) | |
| tree | 710913df1f7b8c85a75f687cab3b35edf920698a /nova/api | |
| parent | 943e8bcda4f304caa15d689d4db0e50376860f00 (diff) | |
update error message
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index bd7fbc3ac..62a8c475c 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -535,7 +535,8 @@ class CloudController(object): def attach_volume(self, context, volume_id, instance_id, device, **kwargs): volume_ref = db.volume_get_by_ec2_id(context, volume_id) if not re.match("^/dev/[a-z]d[a-z]+$", device): - raise exception.ApiError("Invalid device. Example /dev/vdb") + raise exception.ApiError("Invalid device specified: %s. " + "Example device: /dev/vdb" % device) # TODO(vish): abstract status checking? if volume_ref['status'] != "available": raise exception.ApiError("Volume status must be available") |
