mirror of
https://github.com/darlinghq/darling.git
synced 2025-03-01 14:16:31 +00:00
Show the filename when the given file isn't mach-o
This commit is contained in:
parent
53c25351d7
commit
88eea71abe
@ -514,7 +514,7 @@ MachOImpl::MachOImpl(const char* filename, int fd, size_t offset, size_t len,
|
||||
if (header->magic == MH_MAGIC_64) {
|
||||
is64_ = true;
|
||||
} else if (header->magic != MH_MAGIC) {
|
||||
fprintf(stderr, "Not mach-o\n");
|
||||
fprintf(stderr, "Not mach-o: %s\n", filename);
|
||||
exit(1);
|
||||
}
|
||||
ptrsize_ = is64_ ? 8 : 4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user