summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandReturnObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/CommandReturnObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandReturnObject.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/lldb/source/Interpreter/CommandReturnObject.cpp b/lldb/source/Interpreter/CommandReturnObject.cpp
index 9c63753a23f..2b93a546f8a 100644
--- a/lldb/source/Interpreter/CommandReturnObject.cpp
+++ b/lldb/source/Interpreter/CommandReturnObject.cpp
@@ -143,19 +143,9 @@ CommandReturnObject::SetError (const Error &error, const char *fallback_error_cs
const char *error_cstr = error.AsCString();
if (error_cstr == NULL)
error_cstr = fallback_error_cstr;
- SetError(error_cstr);
+ AppendError (error_cstr);
+ SetStatus (eReturnStatusFailed);
}
-
-void
-CommandReturnObject::SetError (const char *error_cstr)
-{
- if (error_cstr)
- {
- AppendError (error_cstr);
- SetStatus (eReturnStatusFailed);
- }
-}
-
// Similar to AppendError, but do not prepend 'Error: ' to message, and
// don't append "\n" to the end of it.
OpenPOWER on IntegriCloud