Like r291636 and r285261.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291786
91177308-0d34-0410-b5e6-
96231b3b80d8
if (FileSize < 4) {
return make_error<StringError>(
Twine("File '") + Filename + "' too small for XRay.",
- std::make_error_code(std::errc::protocol_error));
+ std::make_error_code(std::errc::executable_format_error));
}
// Attempt to mmap the file.
return joinErrors(
make_error<StringError>(
Twine("Failed loading input file '") + AccountInput + "'",
- std::make_error_code(std::errc::protocol_error)),
+ std::make_error_code(std::errc::executable_format_error)),
TraceOrErr.takeError());
}
return joinErrors(
make_error<StringError>(
Twine("Failed loading input file '") + ConvertInput + "'.",
- std::make_error_code(std::errc::protocol_error)),
+ std::make_error_code(std::errc::executable_format_error)),
TraceOrErr.takeError());
}
return Error::success();