From ed94b2adaafc265c2edf1533fccefc5944cd7ca9 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 23 Sep 2019 18:26:15 +0200 Subject: [PATCH] followup: reorder error so that $volid is last (potential long) 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 --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 5bd34072..1e8d3500 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -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);