Improve error reporting for failing to find argdumper.

Reviewers: tfiala, granata.enrico, clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13125

llvm-svn: 248466
This commit is contained in:
Bruce Mitchener 2015-09-24 07:08:29 +00:00
parent abdcb3c1b3
commit 68acf7acd2

View File

@ -1345,13 +1345,13 @@ Host::ShellExpandArguments (ProcessLaunchInfo &launch_info)
FileSpec expand_tool_spec;
if (!HostInfo::GetLLDBPath(lldb::ePathTypeSupportExecutableDir, expand_tool_spec))
{
error.SetErrorString("could not find argdumper tool");
error.SetErrorString("could not get support executable directory for argdumper tool");
return error;
}
expand_tool_spec.AppendPathComponent("argdumper");
if (!expand_tool_spec.Exists())
{
error.SetErrorString("could not find argdumper tool");
error.SetErrorStringWithFormat("could not find argdumper tool: %s", expand_tool_spec.GetPath().c_str());
return error;
}