mach: Always report Mach-O parsing errors

This retains the raise-on-error behavior for developers, but
otherwise only prints an error message.
This commit is contained in:
William Woodruff 2018-06-06 11:22:21 -04:00
parent e78158a4f1
commit 8bb4c4f96f
No known key found for this signature in database
GPG Key ID: 600D68320BE45ACC

View File

@ -43,10 +43,8 @@ module MachOShim
[]
rescue
# ... but complain about other (parse) errors for further investigation.
if ARGV.homebrew_developer?
onoe "Failed to read Mach-O binary: #{self}"
raise
end
onoe "Failed to read Mach-O binary: #{self}"
raise if ARGV.homebrew_developer?
[]
end
end