提交 eea49009 编写于 作者: J Justin

Merge pull request #127 from presidentbeef/better_error_visibility

A little bit better error visibility
......@@ -7,7 +7,15 @@
<% tracker.errors.each do |warning| %>
<tr>
<td><%= CGI.escapeHTML warning[:error] %></td>
<td><%= warning[:backtrace][0] %></td>
<td>
<% if tracker.options[:debug] %>
<% warning[:backtrace].each do |line| %>
<%= line %><br/>
<% end %>
<% else %>
<%= warning[:backtrace][0] %>
<% end %>
</td>
</tr>
<% end %>
</table>
......
......@@ -54,6 +54,9 @@ class Brakeman::Tracker
backtrace = [ backtrace ]
end
Brakeman.debug exception
Brakeman.debug backtrace
@errors << { :error => exception.to_s.gsub("\n", " "), :backtrace => backtrace }
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册