Merge "Add context to error message." am: 0754714469
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052076 Change-Id: I310956878bc02bbf5c0641b6cdc728212ea17946 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -349,7 +349,7 @@ Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDia
|
|||||||
const std::string root_dir = path.to_string();
|
const std::string root_dir = path.to_string();
|
||||||
std::unique_ptr<DIR, decltype(closedir)*> d(opendir(root_dir.data()), closedir);
|
std::unique_ptr<DIR, decltype(closedir)*> d(opendir(root_dir.data()), closedir);
|
||||||
if (!d) {
|
if (!d) {
|
||||||
diag->Error(DiagMessage() << SystemErrorCodeToString(errno));
|
diag->Error(DiagMessage() << SystemErrorCodeToString(errno) << ": " << root_dir);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user