Forgot to check for empty error strings in the previous checkin

llvm-svn: 182325
This commit is contained in:
Enrico Granata
2013-05-20 22:40:54 +00:00
parent bf2e7b593e
commit caa84cbc01
3 changed files with 3 additions and 3 deletions

View File

@@ -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(),