Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add ofail command to print error and exit.

  • Loading branch information...
commit a1abd110844efb0cb4f7c872ecc2a642ffa5edf1 1 parent e399fd7
@mikemcquaid authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Homebrew/utils.rb
View
4 Library/Homebrew/utils.rb
@@ -53,6 +53,10 @@ def onoe error
puts lines unless lines.empty?
end
+def ofail error
+ onoe error
+ exit 1
+end
def pretty_duration s
return "2 seconds" if s < 3 # avoids the plural problem ;)
Please sign in to comment.
Something went wrong with that request. Please try again.