]> git.proxmox.com Git - qemu-server.git/commitdiff
followup: reorder error so that $volid is last (potential long)
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Sep 2019 16:26:15 +0000 (18:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Sep 2019 16:26:27 +0000 (18:26 +0200)
and add "current" as keyword, further remove the parenthesis for the
post-if, to adapt to Proxmox general perl code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm

index 5bd340726308fc61e6e5309f233494ac4be21b57..1e8d3500c72c397523f0688713e17d78684b91f4 100644 (file)
@@ -3579,7 +3579,7 @@ __PACKAGE__->register_method({
            PVE::Storage::activate_volumes($storecfg, [$volid]);
            my $size = PVE::Storage::volume_size_info($storecfg, $volid, 5);
 
-           die "Size of volume $volid couldn't be determined\n" if (!defined($size));
+           die "Could not determine current size of volume '$volid'\n" if !defined($size);
 
            die "internal error" if $sizestr !~ m/^(\+)?(\d+(\.\d+)?)([KMGT])?$/;
            my ($ext, $newsize, $unit) = ($1, $2, $4);