Skip to content

Commit

Permalink
Wrap and truncate error message, which can be a huge text
Browse files Browse the repository at this point in the history
  • Loading branch information
morgoth authored and bensheldon committed Jul 25, 2021
1 parent 94654f5 commit f9d7ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/app/views/shared/_jobs_table.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<td><%= job.serialized_params['job_class'] %></td>
<td><%= job.queue_name %></td>
<td><%= job.scheduled_at || job.created_at %></td>
<td><%= job.error %></td>
<td class="text-break"><%= truncate(job.error, length: 1_000) %></td>
<td>
<%= tag.button "Preview", type: "button", class: "btn btn-sm btn-outline-primary", role: "button",
data: {bs_toggle: "collapse", bs_target: "##{dom_id(job, 'params')}"},
Expand Down

0 comments on commit f9d7ee1

Please sign in to comment.