Bug 1304042 - Fail the build if running dsymutil fails.
MozReview-Commit-ID: 9ROIRpuoVGR
--- a/toolkit/crashreporter/tools/symbolstore.py
+++ b/toolkit/crashreporter/tools/symbolstore.py
@@ -815,16 +815,17 @@ class Dumper_Mac(Dumper):
try:
cmd = ([dsymutil] +
[a.replace('-a ', '--arch=') for a in self.archs if a] +
[file])
print(' '.join(cmd), file=sys.stderr)
subprocess.check_call(cmd, stdout=open(os.devnull, 'w'))
except subprocess.CalledProcessError as e:
print('Error running dsymutil: %s' % str(e), file=sys.stderr)
+ raise
if not os.path.exists(dsymbundle):
# dsymutil won't produce a .dSYM for files without symbols
print("No symbols found in file: %s" % (file,), file=sys.stderr)
return False
elapsed = time.time() - t_start
print('Finished processing %s in %.2fs' % (file, elapsed),