aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 7033a1e51..ca7885983 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -76,7 +76,12 @@ class FailsWithLLVM
attr_reader :msg, :data, :build
def initialize msg=nil, data=nil
- @msg = msg || "(No specific reason was given)"
+ if msg.nil? or msg.kind_of? Hash
+ @msg = "(No specific reason was given)"
+ data = msg
+ else
+ @msg = msg
+ end
@data = data
@build = data.delete :build rescue nil
end