Improve error message if gcc or other tools can not be found.

This fixes #192.
This commit is contained in:
kai
2012-10-14 12:39:35 +02:00
parent 95121115d3
commit 8519f448f8
2 changed files with 12 additions and 15 deletions

View File

@@ -84,7 +84,7 @@ static int ExecuteToolAndWait(llvm::sys::Path tool, std::vector<std::string> arg
std::string errstr;
if (int status = llvm::sys::Program::ExecuteAndWait(tool, &realargs[0], NULL, NULL, 0, 0, &errstr))
{
error("tool failed:\nstatus: %d", status);
error("%s failed with status: %d", tool.c_str(), status);
if (!errstr.empty())
error("message: %s", errstr.c_str());
return status;