Print the error if dsymForUUID sometimes produces bad plists.

Not much we can do about it but at least we can print the bad
plist and the error.

llvm-svn: 298958
This commit is contained in:
Jim Ingham 2017-03-28 23:25:34 +00:00
parent 331297c62e
commit 9f44d460d9

View File

@ -259,7 +259,11 @@ class CrashLog(symbolication.Symbolicator):
self.dsymForUUIDBinary, uuid_str)
s = commands.getoutput(dsym_for_uuid_command)
if s:
plist_root = plistlib.readPlistFromString(s)
try:
plist_root = plistlib.readPlistFromString(s)
except:
print("Got exception: ", sys.exc_value, " handling dsymForUUID output: \n", s)
raise
if plist_root:
plist = plist_root[uuid_str]
if plist: