summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2016-01-11 13:01:01 -0800
committer Colin Cross <ccross@android.com> 2016-01-11 13:43:27 -0800
commit2862458bbb105a320ec74e53dbf69cbe932d8b74 (patch)
tree43d918c8c807949b9839b6377000e41364ba97b6
parent861ab99536bf1a7a3b15dd08c17b9047fc88014b (diff)
makeparallel: print path on exec failure
If ninja is missing makeparallel prints an unhelpful error: out/host/linux-x86/bin/makeparallel: exec failed: No such file or directory which suggests that makeparallel is what is missing, not what is reporting the error. Print the path passed to exec as well. Change-Id: Ic04c1cde6da9c3a974b5c43e3fb3bdb6da6605f7
-rw-r--r--tools/makeparallel/makeparallel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/makeparallel/makeparallel.cpp b/tools/makeparallel/makeparallel.cpp
index 576fe8df8f..cf125faa3a 100644
--- a/tools/makeparallel/makeparallel.cpp
+++ b/tools/makeparallel/makeparallel.cpp
@@ -343,7 +343,7 @@ int main(int argc, char* argv[]) {
// child
int ret = execvp(path, args.data());
if (ret < 0) {
- error(errno, errno, "exec failed");
+ error(errno, errno, "exec %s failed", path);
}
abort();
}