Skip to content

Commit

Permalink
limit error message to 500 symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
antonzaytsev committed May 20, 2015
1 parent 3b3068d commit 69f9919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/failures/views/failures.erb
Expand Up @@ -44,7 +44,7 @@
<td><%= safe_relative_time(entry['failed_at']) %></td>
<td style="overflow: auto; padding: 10px;">
<a class="backtrace" href="#" onclick="$(this).next().toggle(); return false">
<%= h entry['error_class'] %>: <%= h entry['error_message'] %>
<%= h entry['error_class'] %>: <%= h entry['error_message'].size > 500 ? entry['error_message'][0..500] + '...' : entry['error_message'] %>
</a>
<pre style="display: none; background: none; border: 0; width: 100%; max-height: 30em; font-size: 0.8em; white-space: nowrap; overflow: auto;">
<%= entry['error_backtrace'].join("<br />") if entry['error_backtrace'] %>
Expand Down

0 comments on commit 69f9919

Please sign in to comment.