diff --git a/app/views/delayed_jobs/index.html.erb b/app/views/delayed_jobs/index.html.erb
index e69f42f5d..a517815ba 100644
--- a/app/views/delayed_jobs/index.html.erb
+++ b/app/views/delayed_jobs/index.html.erb
@@ -27,8 +27,10 @@
<% end %>
<%= job.attempts %> |
- <%= job.last_error.split(/\n/)[0] %>
- <%= job.last_error.split(/\n/)[1..-1].grep(/releases/).join("\n") %>
+ <% if job.last_error %>
+ <%= job.last_error.split(/\n/)[0] %>
+ <%= job.last_error.split(/\n/)[1..-1].grep(/releases/).join("\n") %>
+ <% end %>
|
<%= time_ago_in_words_tagged(job.failed_at) if job.failed_at %> |
<%= time_ago_in_words_tagged(job.run_at) %> |