]> git.proxmox.com Git - pve-storage.git/commitdiff
avoid nested parameter exception
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Sep 2013 11:21:18 +0000 (13:21 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Sep 2013 11:43:59 +0000 (13:43 +0200)
PVE/API2/Storage/Content.pm

index c8261d4886ec9b213cd32618cf63e28ede79fa7e..605e455107019464e5648a58b2497d7339c5b448 100644 (file)
@@ -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" })