Skip to content

Commit

Permalink
createBuildPackage(): give more info in error message. (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarL authored Sep 30, 2024
1 parent 88f60d2 commit b8812e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HaikuPorter/Package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8812e1

Please sign in to comment.