Skip to content
Snippets Groups Projects
Commit 56e82c94 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

mach: improve otool failure handling.

parent 02e5f8ed
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,10 @@ module MachO
def parse_otool_L_output
ENV["HOMEBREW_MACH_O_FILE"] = path.expand_path.to_s
libs = `#{MacOS.locate("otool")} -L "$HOMEBREW_MACH_O_FILE"`.split("\n")
return nil, [] if libs.empty?
unless $?.success?
raise ErrorDuringExecution.new(MacOS.locate("otool"),
["-L", ENV["HOMEBREW_MACH_O_FILE"]])
end
libs.shift # first line is the filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment