summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-05-20 22:40:54 +0000
committerEnrico Granata <egranata@apple.com>2013-05-20 22:40:54 +0000
commitcaa84cbc015d11bef3a07b9acb3b3ada41ed3cb4 (patch)
tree0994c18021d0ab1cce58be35a2014b011b5831fa /lldb/source/Target/Target.cpp
parentbf2e7b593e38ab7de4e43916ea7fa4aff928cfb3 (diff)
downloadbcm5719-llvm-caa84cbc015d11bef3a07b9acb3b3ada41ed3cb4.tar.gz
bcm5719-llvm-caa84cbc015d11bef3a07b9acb3b3ada41ed3cb4.zip
Forgot to check for empty error strings in the previous checkin
llvm-svn: 182325
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index c40b91b8ffb..490c88e186d 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -984,7 +984,7 @@ static void
LoadScriptingResourceForModule (const ModuleSP &module_sp, Target *target)
{
Error error;
- if (module_sp && !module_sp->LoadScriptingResourceInTarget(target, error))
+ if (module_sp && !module_sp->LoadScriptingResourceInTarget(target, error) && error.AsCString())
{
target->GetDebugger().GetOutputStream().Printf("unable to load scripting data for module %s - error reported was %s\n",
module_sp->GetFileSpec().GetFileNameStrippingExtension().GetCString(),
OpenPOWER on IntegriCloud