From 93aa95f71af71d28f744312d982b1856073d2494 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Thu, 31 Mar 2022 23:04:54 -0700 Subject: [PATCH] Add context to error message. Would have been very useful to avoid http://b/227682097 Bug: 227682097 Test: m apexer apexer_test deapexer debugfs_static; atest --host apexer_test Change-Id: I24234d053a06868493831d40f94f7e46956391a1 --- tools/aapt2/util/Files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/aapt2/util/Files.cpp b/tools/aapt2/util/Files.cpp index be09545abb45..383be56bb227 100644 --- a/tools/aapt2/util/Files.cpp +++ b/tools/aapt2/util/Files.cpp @@ -349,7 +349,7 @@ Maybe> FindFiles(const android::StringPiece& path, IDia const std::string root_dir = path.to_string(); std::unique_ptr d(opendir(root_dir.data()), closedir); if (!d) { - diag->Error(DiagMessage() << SystemErrorCodeToString(errno)); + diag->Error(DiagMessage() << SystemErrorCodeToString(errno) << ": " << root_dir); return {}; }