Fixed error message for package path not existing.
Changed to human readable (without LOG(ERROR) trash).
Test:
Change-Id: I8c68a3c5996fa0f7c310bd0222d5d644ff3a45fc
diff --git a/Coordinator.cpp b/Coordinator.cpp
index 15702f2..8223326 100644
--- a/Coordinator.cpp
+++ b/Coordinator.cpp
@@ -107,8 +107,6 @@
status_t err = parseFile(ast);
if (err != OK) {
- // LOG(ERROR) << "parsing '" << path << "' FAILED.";
-
delete ast;
ast = nullptr;
@@ -288,7 +286,11 @@
DIR *dir = opendir(packagePath.c_str());
if (dir == NULL) {
- LOG(ERROR) << "Could not open package path: " << packagePath;
+ fprintf(stderr,
+ "ERROR: Could not open package path %s for package %s:\n%s\n",
+ getPackagePath(package).c_str(),
+ package.string().c_str(),
+ packagePath.c_str());
return -errno;
}