[pve-devel] [PATCH] VZDump: die with error if plugin loading fails

Stefan Priebe s.priebe at profihost.ag
Wed Nov 16 20:08:28 CET 2016


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 PVE/VZDump.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index a4b40ce..42e34d1 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -191,7 +191,7 @@ foreach my $plug (@pve_vzdump_classes) {
 	    $plug->import ();
 	    push @plugins, $plug;
 	} else {
-	    warn $@;
+	    die $@;
 	}
     }
 }
-- 
2.1.4




More information about the pve-devel mailing list