summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2017-03-21 15:01:07 +0000
committerJose Fonseca <jfonseca@vmware.com>2017-03-21 15:01:07 +0000
commita732b6535e5087c211c1139b7810c8c329e92c08 (patch)
tree8c0aca956b2cd0d433bc63f84d28cd466e11e4c2
parentee6f4fffa3e3926adf55ef8ecc0bedeeca821365 (diff)
cli: Write full path of where the Python scripts are expected to be.
Should help diagnose issues like https://github.com/apitrace/apitrace/issues/511
-rw-r--r--cli/cli_resources.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/cli_resources.cpp b/cli/cli_resources.cpp
index 4186bd60..47beee9e 100644
--- a/cli/cli_resources.cpp
+++ b/cli/cli_resources.cpp
@@ -191,8 +191,10 @@ findScript(const char *scriptFilename, bool verbose)
if (tryPath(scriptPath, verbose)) {
return scriptPath;
}
+ std::cerr << "error: cannot find " << scriptPath << " script\n";
+#else
+ std::cerr << "error: cannot find " << scriptFilename << " script\n";
#endif
- std::cerr << "error: cannot find " << scriptFilename << " script\n";
exit(1);
}