Skip to content

Commit

Permalink
Enhance error handling of xcrun altool
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalMMac committed Jun 10, 2019
1 parent 806aefb commit 63111cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion munkipkg
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,11 @@ def notarize(build_info, options):
['--asc-provider', build_info['notarization_info']['asc_provider']]
)
retcode, proc_stdout, proc_stderr = run_subprocess(cmd)
output = readPlistFromString(proc_stdout)
try:
output = readPlistFromString(proc_stdout)
except ExpatError:
print(proc_stderr, file=sys.stderr)
raise MunkiPkgError("Notarization failed. Unable to run xcrun altool")

if retcode:
for product_error in output['product-errors']:
Expand Down

0 comments on commit 63111cd

Please sign in to comment.