Skip to content
Browse files

Add ofail command to print error and exit.

  • Loading branch information...
1 parent e399fd7 commit a1abd110844efb0cb4f7c872ecc2a642ffa5edf1 @mikemcquaid committed
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 ;)

0 comments on commit a1abd11

Please sign in to comment.
Something went wrong with that request. Please try again.