Lines Matching full:error_msg
78 std::string error_msg;
80 &cache_filename, &error_msg)) {
107 static bool ReadOatPatchDelta(const ElfFile* elf_file, off_t* delta, std::string* error_msg) {
110 *error_msg = "Unable to get oat header from elf file.";
114 *error_msg = "Elf file has an invalid oat header";
215 std::string error_msg;
223 &error_msg));
225 LOG(ERROR) << "Unable to map image file " << input_image->GetPath() << " : " << error_msg;
242 std::string error_msg;
244 PROT_READ | PROT_WRITE, MAP_PRIVATE, &error_msg));
246 LOG(ERROR) << "Unable to open oat file " << input_oat_file->GetPath() << " : " << error_msg;
366 std::string error_msg;
369 img_flock.Init(out, &error_msg);
763 std::string error_msg;
765 PROT_READ | PROT_WRITE, MAP_PRIVATE, &error_msg));
767 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg;
960 static bool ReadBaseDelta(const char* name, off_t* delta, std::string* error_msg) {
967 *error_msg = "Failed to open file %s for reading";
971 *error_msg = "File %s does not exist";
977 *error_msg = "Failed to read file %s";
981 *error_msg = "%s does not contain a valid image header.";
1095 std::string error_msg;
1096 if (!ReadBaseDelta(patched_image_filename.c_str(), &base_delta, &error_msg)) {
1097 Usage(error_msg.c_str(), patched_image_filename.c_str());
1135 std::string error_msg;
1136 std::unique_ptr<ElfFile> elf(ElfFile::Open(input_oat.get(), PROT_READ, MAP_PRIVATE, &error_msg));
1138 LOG(ERROR) << "unable to open oat file " << input_oat->GetPath() << " : " << error_msg;
1187 if (!ReadOatPatchDelta(elf.get(), ¤t_delta, &error_msg)) {
1188 LOG(ERROR) << "Unable to get current delta: " << error_msg;
1210 if (!output_oat_lock.Init(output_oat.get(), &error_msg)) {
1211 LOG(ERROR) << "Unable to lock output oat " << output_oat->GetPath() << ": " << error_msg;