Don't hide errors in PlatformFreeBSD::ResolveExecutable

If error is already set then there's no reason to replace it with a
generic "<file> does not exist" message.

llvm-svn: 189686
This commit is contained in:
Ed Maste 2013-08-30 18:00:50 +00:00
parent 3bf33075ce
commit 8b4c82f0fe
1 changed files with 2 additions and 8 deletions

View File

@ -236,8 +236,7 @@ PlatformFreeBSD::ResolveExecutable (const FileSpec &exe_file,
}
}
}
if (error.Success())
{
ModuleSpec module_spec (resolved_exe_file, exe_arch);
@ -294,12 +293,7 @@ PlatformFreeBSD::ResolveExecutable (const FileSpec &exe_file,
}
}
}
else
{
error.SetErrorStringWithFormat ("'%s' does not exist",
exe_file.GetPath().c_str());
}
return error;
}