[pve-devel] [PATCH pve-container 1/2] error when failing to extract rather than warn

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 20 11:54:50 CET 2015


---
 src/PVE/LXC/Create.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 58db2d2..7051fcc 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -213,7 +213,7 @@ sub create_rootfs {
         restore_and_configure($vmid, $archive, $rootdir, $conf, $password, $restore);
     };
     if (my $err = $@) {
-	warn $err;
+	die $err;
 	PVE::LXC::umount_all($vmid, $storage_cfg, $conf, 1);
     } else {
 	PVE::LXC::umount_all($vmid, $storage_cfg, $conf, 0);
-- 
2.1.4





More information about the pve-devel mailing list