Merge "Add context to error message." am: 0754714469 am: 82e2afb277 am: e210ca9e34
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052076 Change-Id: I4669a3e8ffd72d7591d4c6713942072f998b82f8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e1cbf0b117
@ -349,7 +349,7 @@ std::optional<std::vector<std::string>> FindFiles(const android::StringPiece& pa
|
||||
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