summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Bob Badour <bbadour@google.com> 2022-03-31 23:04:54 -0700
committer Bob Badour <bbadour@google.com> 2022-04-01 15:21:26 +0000
commit93aa95f71af71d28f744312d982b1856073d2494 (patch)
treee4467e93139c8d53764a7f3287eeb9ec92080615
parentd7013fb94eae27b5e28354d47dad5bfc48b474d6 (diff)
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
-rw-r--r--tools/aapt2/util/Files.cpp2
1 files changed, 1 insertions, 1 deletions
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<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 {};
}