<rdar://problem/13209140>
“plugin load” tries to be more helpful when it fails to load a plugin
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@180218 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectPlugin.cpp b/source/Commands/CommandObjectPlugin.cpp
index 395dad7..1bc7632 100644
--- a/source/Commands/CommandObjectPlugin.cpp
+++ b/source/Commands/CommandObjectPlugin.cpp
@@ -96,10 +96,13 @@
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();
}