diff options
author | Martin Stjernholm <mast@google.com> | 2024-02-14 13:31:55 +0000 |
---|---|---|
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-02-14 16:34:43 +0000 |
commit | c85f8a06d7c33743ec663b7a59f543e79dfcb3d7 (patch) | |
tree | d3415a0ceaa6b406edffcc8c3fcb1ea5360926fb | |
parent | 61f84499a56adc9f58ec873dba4158e8995d240b (diff) | |
download | art-c85f8a06d7c33743ec663b7a59f543e79dfcb3d7.tar.gz |
Improve an errno error message to show the file.
Test: presubmits
Bug: 325107109
Change-Id: I40ee8146f1cc36be9634ed1e3cf689ff6ce0e1f5
-rw-r--r-- | libnativeloader/public_libraries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnativeloader/public_libraries.cpp b/libnativeloader/public_libraries.cpp index 87210c8f14..0ba18f3ecf 100644 --- a/libnativeloader/public_libraries.cpp +++ b/libnativeloader/public_libraries.cpp @@ -94,7 +94,7 @@ Result<std::vector<std::string>> ReadConfig( const std::function<Result<bool>(const ConfigEntry& /* entry */)>& filter_fn) { std::string file_content; if (!base::ReadFileToString(configFile, &file_content)) { - return ErrnoError(); + return ErrnoError() << "Failed to read " << configFile; } Result<std::vector<std::string>> result = ParseConfig(file_content, filter_fn); if (!result.ok()) { |