[pve-devel] [PATCH pve-container 2/2] improve setup error message a little

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 6 11:27:13 CET 2015


---
 src/PVE/LXC/Setup.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
index 35d2d29..9e80088 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -91,7 +91,10 @@ sub protected_call {
 	POSIX::_exit(0);
     }
     while (waitpid($child, 0) != $child) {}
-    die "setup error" if $? != 0;
+    if ($? != 0) {
+	my $method = (caller(1))[3];
+	die "error in setup task $method\n";
+    }
 }
 
 sub template_fixup {
-- 
2.1.4





More information about the pve-devel mailing list