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:
parent
e78158a4f1
commit
8bb4c4f96f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user