]> git.proxmox.com Git - qemu-server.git/commitdiff
Add missing die statements
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 4 Aug 2020 11:32:44 +0000 (13:32 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 11 Aug 2020 12:34:56 +0000 (14:34 +0200)
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index 0a09f3a7e71c33c962e11ea3a1eca539d7a53ba2..a9c0dac0fd7d7b79b4e8b7bf8958260e27bfc686 100644 (file)
@@ -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) {