clean up stack trace on delayed jobs index

This commit is contained in:
r888888888
2017-11-17 14:42:48 -08:00
parent 42c9c71a5f
commit e8ff733b3c

View File

@@ -26,7 +26,10 @@
<td class="col-expand"><%= raw print_handler(job) %></td>
<% end %>
<td><%= job.attempts %></td>
<td class="col-expand"><%= job.last_error %></td>
<td class="col-expand">
<%= job.last_error.split(/\n/)[0] %>
<%= job.last_error.split(/\n/)[1..-1].grep(/releases/).join("\n") %>
</td>
<td><%= time_ago_in_words_tagged(job.failed_at) if job.failed_at %></td>
<td><%= time_ago_in_words_tagged(job.run_at) %></td>
<td>