From b8812e1076f6350ab2ecc54da3a382a3014a6c30 Mon Sep 17 00:00:00 2001 From: OscarL Date: Mon, 30 Sep 2024 12:41:09 -0300 Subject: [PATCH] createBuildPackage(): give more info in error message. (#299) --- HaikuPorter/Package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HaikuPorter/Package.py b/HaikuPorter/Package.py index 3c1f9bc..d80571d 100644 --- a/HaikuPorter/Package.py +++ b/HaikuPorter/Package.py @@ -280,7 +280,9 @@ def createBuildPackage(self): output = check_output(cmdlineArgs, stderr=STDOUT).decode('utf-8') except CalledProcessError as exception: raise Exception('failure creating the build package: ' - + exception.output[:-1].decode('utf-8')) + + "\n\tcommand: '%s'" % ' '.join(exception.cmd) + + "\n\treturn code: '%s'" % exception.returncode + + "\n\toutput: '%s'" % exception.output[:-1].decode('utf-8')) info(output) self.buildPackage = buildPackage os.remove(buildPackageInfo)