From 3c8d82d25f850686d4b650bc4f00166edd5e889b Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 28 Jun 2016 10:28:53 +0200 Subject: [PATCH] JobTable: show error in table if any --- application/tables/JobTable.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/tables/JobTable.php b/application/tables/JobTable.php index 55f5014b..60d8db3e 100644 --- a/application/tables/JobTable.php +++ b/application/tables/JobTable.php @@ -39,6 +39,11 @@ class JobTable extends QuickTable if ($row->unixts_last_attempt === null) { return 'pending'; } + + if ($row->last_attempt_succeeded === 'n' && $row->last_error_message) { + $row->job_name .= ' (' . $row->last_error_message . ')'; + } + if ($row->unixts_last_attempt + $row->run_interval < time()) { return 'pending'; }