diff options
Diffstat (limited to 'runtime/oat_file.cc')
-rw-r--r-- | runtime/oat_file.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/oat_file.cc b/runtime/oat_file.cc index 00a8506..61f023c 100644 --- a/runtime/oat_file.cc +++ b/runtime/oat_file.cc @@ -84,6 +84,7 @@ OatFile* OatFile::Open(const std::string& filename, // This won't work for portable runtime execution because it doesn't process relocations. UniquePtr<File> file(OS::OpenFileForReading(filename.c_str())); if (file.get() == NULL) { + *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno)); return NULL; } return OpenElfFile(file.get(), location, requested_base, false, executable, error_msg); |