Added package directory unable to open error message.
This is useful to know when:
- someone mistypes the path root or package
- hidl-gen is run from a different directory than usual
Additionally, a return code of 1 is now sent when output could not be
generated (so 'hidl-gen .... && echo "Success"' works as expected in
all cases).
Change-Id: Ica68510133442cfe4152dde6c58f4e395ceeb450
diff --git a/Coordinator.cpp b/Coordinator.cpp
index 90308de..3d414b9 100644
--- a/Coordinator.cpp
+++ b/Coordinator.cpp
@@ -236,6 +236,7 @@
DIR *dir = opendir(packagePath.c_str());
if (dir == NULL) {
+ LOG(ERROR) << "Could not open package path: " << packagePath;
return -errno;
}