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

Add better Unix exit codes.

Closes Homebrew/homebrew#10809.
parent a005834d
No related branches found
No related tags found
No related merge requests found
......@@ -836,5 +836,6 @@ module Homebrew extend self
end
puts "Your system is raring to brew." if raring_to_brew
exit raring_to_brew ? 0 : 1
end
end
......@@ -87,6 +87,7 @@ module Homebrew extend self
fi.finish
rescue CannotInstallFormulaError => e
onoe e.message
exit 1
end
end
end
......
......@@ -66,9 +66,11 @@ module Homebrew extend self
installer.finish
rescue CannotInstallFormulaError => e
onoe e
exit 1
rescue BuildError => e
e.dump
puts
exit 1
ensure
# restore previous installation state if build failed
outdated_keg.link if outdated_keg and not f.installed? rescue nil
......
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