forked from OSchip/llvm-project
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:
parent
3bf33075ce
commit
8b4c82f0fe
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue