From 8bb4c4f96f62e38a5546d47bbe76b2ddfa4317f5 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 6 Jun 2018 11:22:21 -0400 Subject: [PATCH] mach: Always report Mach-O parsing errors This retains the raise-on-error behavior for developers, but otherwise only prints an error message. --- Library/Homebrew/os/mac/mach.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index 9586188692..7ec65439db 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -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