[Lldb-commits] [PATCH] D129614: [lldb/crashlog] Surface error using SBCommandReturnObject argument
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 13 10:02:12 PDT 2022
JDevlieghere added inline comments.
================
Comment at: lldb/examples/python/crashlog.py:1012-1015
+ def error(message, sb_error=lldb.SBError()):
+ nonlocal result
+ result.SetError(sb_error, "error: %s" % message)
+ return
----------------
Can we do this with a try-catch + an exception?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129614/new/
https://reviews.llvm.org/D129614
More information about the lldb-commits
mailing list