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