Skip to content

Commit

Permalink
Show the class name of exceptions in the HTML formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarib committed Oct 21, 2011
1 parent b8b8533 commit d2326c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cucumber/formatter/html.rb
Expand Up @@ -378,6 +378,11 @@ def build_exception_detail(exception)
matches = message.match(/<code>([^(\/)]+)<\//m)
message = matches ? matches[1] : ""
end

unless exception.instance_of?(RuntimeError)
message << " (#{exception.class})"
end

@builder.pre do
@builder.text!(message)
end
Expand Down

0 comments on commit d2326c4

Please sign in to comment.