aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlugin.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectPlugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectPlugin.cpp b/lldb/source/Commands/CommandObjectPlugin.cpp
index 395dad7..1bc7632 100644
--- a/lldb/source/Commands/CommandObjectPlugin.cpp
+++ b/lldb/source/Commands/CommandObjectPlugin.cpp
@@ -96,10 +96,13 @@ protected:
FileSpec dylib_fspec(path,true);
- if (m_interpreter.GetDebugger().LoadPlugin(dylib_fspec))
+ if (m_interpreter.GetDebugger().LoadPlugin(dylib_fspec, error))
result.SetStatus(eReturnStatusSuccessFinishResult);
else
+ {
+ result.AppendError(error.AsCString());
result.SetStatus(eReturnStatusFailed);
+ }
return result.Succeeded();
}