forked from OSchip/llvm-project
[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:
parent
7f34aca083
commit
f0fd4349a7
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue