Skip to content

Commit af28f77

Browse files
committed
Use AppendError to mark status and supply reason
1 parent b64f5ac commit af28f77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/bindings/python/python-wrapper.swig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommand(
624624
SWIGBridge::ToSWIGWrapper(std::move(exe_ctx_ref_sp)), cmd_retobj_arg.obj(), dict);
625625

626626
if (PyErr_Occurred())
627-
cmd_retobj.SetStatus(eReturnStatusFailed);
627+
cmd_retobj.AppendError("Scripted command threw an uncaught exception");
628628

629629
return true;
630630
}
@@ -648,7 +648,7 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallCommandObject(
648648
SWIGBridge::ToSWIGWrapper(exe_ctx_ref_sp), cmd_retobj_arg.obj());
649649

650650
if (PyErr_Occurred())
651-
cmd_retobj.SetStatus(eReturnStatusFailed);
651+
cmd_retobj.AppendError("Scripted command threw an uncaught exception");
652652

653653
return true;
654654
}
@@ -767,7 +767,7 @@ bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallParsedCommandObject(
767767
SWIGBridge::ToSWIGWrapper(exe_ctx_ref_sp), SWIGBridge::ToSWIGWrapper(cmd_retobj).obj());
768768

769769
if (PyErr_Occurred())
770-
cmd_retobj.SetStatus(eReturnStatusFailed);
770+
cmd_retobj.AppendError("Scripted command threw an uncaught exception");
771771

772772
return true;
773773
}

0 commit comments

Comments
 (0)