Permalink
Browse files

Adding exception class to show

  • Loading branch information...
1 parent 85cd53c commit 03acf9ad8e5582e586dc5e4e72608e8b879f9ae7 @bvandenbos bvandenbos committed Jun 22, 2011
Showing with 7 additions and 1 deletion.
  1. +5 −0 lib/exceptionl/exception_group.rb
  2. +1 −0 lib/exceptionl/server/views/show.erb
  3. +1 −1 lib/exceptionl/version.rb
@@ -21,4 +21,9 @@ class Exceptionl::ExceptionGroup
# The most recent ExceptionReport instance belonging to this group
attr_accessor :most_recent_report
+
+ def type
+ most_recent_report.type unless most_recent_report.nil?
+ end
+
end
@@ -7,6 +7,7 @@
<dt>First occurred</dt><dd><%= h(@group.first_timestamp) %></dd>
<dt>Most recently occurred</dt><dd><%= h(@group.most_recent_timestamp) %></dd>
<dt>On machines</dt><dd><%= h(@group.machines.join(', ')) %></dd>
+ <dt>Exception class</dt><dd><%= h(@group.type) %></dd>
</dl>
<p><a href="/similar/<%= @report.digest%>.html">See all</a></p>
<% plugins.each do |plugin| %>
@@ -1,4 +1,4 @@
module Exceptionl
# Exceptionl's current version.
- VERSION = "0.0.11"
+ VERSION = "0.0.12"
end

0 comments on commit 03acf9a

Please sign in to comment.