Permalink
Browse files

Show the class name of exceptions in the HTML formatter.

  • Loading branch information...
1 parent b8b8533 commit d2326c4b12a1d207681dccbff181bf80a04ff7c5 @jarib committed Oct 21, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/cucumber/formatter/html.rb
@@ -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

0 comments on commit d2326c4

Please sign in to comment.