]> git.proxmox.com Git - qemu-server.git/commitdiff
backup: prepare: improve error messages
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 27 Mar 2023 09:01:06 +0000 (11:01 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 27 Mar 2023 09:38:43 +0000 (11:38 +0200)
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index 036a7228ce83fbfcb674703271ff03fb8b1abc08..af197882be3ba5e0b4d4e5022bae9a9ceb66bfeb 100644 (file)
@@ -123,7 +123,7 @@ sub prepare {
        if ($storeid) {
            # The call in list context can be expensive for certain plugins like RBD, just get size
            $size = eval { PVE::Storage::volume_size_info($self->{storecfg}, $volid, 5) };
-           die "no such volume '$volid'\n" if $@;
+           die "cannot determine size of volume '$volid' - $@\n" if $@;
 
            my $scfg = PVE::Storage::storage_config($self->{storecfg}, $storeid);
            $format = PVE::QemuServer::qemu_img_format($scfg, $volname);
@@ -131,7 +131,7 @@ sub prepare {
            ($size, $format) = eval {
                PVE::Storage::volume_size_info($self->{storecfg}, $volid, 5);
            };
-           die "no such volume '$volid'\n" if $@;
+           die "cannot determine size and format of volume '$volid' - $@\n" if $@;
        }
 
        my $diskinfo = {