[crashlog] Print the actual exception in the CommandReturnObject

Before:

  error: python exception <class 'AttributeError'>

After:

  error: python exception: 'DarwinImage' object has no attribute 'debugger'
This commit is contained in:
Jonas Devlieghere 2020-11-03 11:49:59 -08:00
parent 7f34aca083
commit f0fd4349a7
1 changed files with 2 additions and 2 deletions

View File

@ -849,8 +849,8 @@ def save_crashlog(debugger, command, exe_ctx, result, dict):
def Symbolicate(debugger, command, result, dict):
try:
SymbolicateCrashLogs(shlex.split(command))
except:
result.PutCString("error: python exception %s" % sys.exc_info()[0])
except Exception as e:
result.PutCString("error: python exception: %s" % e)
def SymbolicateCrashLog(crash_log, options):