diff options
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h')
| -rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h index e1a3156d10af..cbb6cd41aa86 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h @@ -269,7 +269,7 @@ protected: transformed_args); if (llvm::Error e = expected_return_object.takeError()) { - error.SetErrorString(llvm::toString(std::move(e)).c_str()); + error = Status(std::move(e)); return ErrorWithMessage<T>(caller_signature, "Python method could not be called.", error); } @@ -368,9 +368,8 @@ protected: if (boolean_arg.IsValid()) original_arg = boolean_arg.GetValue(); else - error.SetErrorString( - llvm::formatv("{}: Invalid boolean argument.", LLVM_PRETTY_FUNCTION) - .str()); + error = Status::FromErrorStringWithFormatv( + "{}: Invalid boolean argument.", LLVM_PRETTY_FUNCTION); } template <std::size_t... I, typename... Args> |
