mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Improve error message if gcc or other tools can not be found.
This fixes #192.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user