From 5f25af2f93ac64c16b04e178d237f7cd13da173c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 4 Sep 2013 13:21:18 +0200 Subject: [PATCH] avoid nested parameter exception --- PVE/API2/Storage/Content.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm index c8261d4..605e455 100644 --- a/PVE/API2/Storage/Content.pm +++ b/PVE/API2/Storage/Content.pm @@ -180,12 +180,12 @@ my $real_volume_id = sub { if ($volume =~ m/:/) { eval { my ($sid, $volname) = PVE::Storage::parse_volume_id ($volume); - raise_param_exc({ storage => "storage ID missmatch" }) + die "storage ID missmatch ($sid != $storeid)\n" if $storeid && $sid ne $storeid; $volid = $volume; $storeid = $sid; }; - raise_param_exc({ volume => $@}) if $@; + raise_param_exc({ volume => $@ }) if $@; } else { raise_param_exc({ volume => "no storage speficied - incomplete volume ID" })