From a1cbe55cc7a5c15b0618c6e7d481781f6fab37e3 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Tue, 4 Aug 2020 13:32:44 +0200 Subject: [PATCH] Add missing die statements Signed-off-by: Fabian Ebner --- PVE/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 0a09f3a7..a9c0dac0 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -6022,7 +6022,7 @@ sub restore_proxmox_backup_archive { } my $fh = IO::File->new($cfgfn, "r") || - "unable to read qemu-server.conf - $!\n"; + die "unable to read qemu-server.conf - $!\n"; my $virtdev_hash = $parse_backup_hints->($rpcenv, $user, $storecfg, $fh, $devinfo, $options); @@ -6183,7 +6183,7 @@ sub restore_vma_archive { # we can read the config - that is already extracted my $fh = IO::File->new($cfgfn, "r") || - "unable to read qemu-server.conf - $!\n"; + die "unable to read qemu-server.conf - $!\n"; my $fwcfgfn = "$tmpdir/qemu-server.fw"; if (-f $fwcfgfn) {