Skip to content

Commit

Permalink
Improved assertion violation backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Avdi Grimm committed Jan 10, 2010
1 parent af45fad commit db149a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cowsay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def say(message, options={})
private

def assert(value, message="Assertion failed")
raise Exception, message unless value
raise Exception, message, caller unless value
end
end
end

0 comments on commit db149a9

Please sign in to comment.