summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ModuleList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/ModuleList.cpp')
-rw-r--r--lldb/source/Core/ModuleList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index 96dbc4f6e62..449a800949e 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -1022,7 +1022,7 @@ ModuleList::LoadScriptingResourcesInTarget (Target *target,
if (module)
{
module->LoadScriptingResourceInTarget(target, error);
- if (error.Fail())
+ if (error.Fail() && error.AsCString())
{
error.SetErrorStringWithFormat("unable to load scripting data for module %s - error reported was %s",
module->GetFileSpec().GetFileNameStrippingExtension().GetCString(),
OpenPOWER on IntegriCloud