From fd78cdb1c1358233c5ea0526f0de9467896eaaf6 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Sat, 2 Jul 2011 12:23:55 +0200 Subject: [PATCH] bacula-web: Improved database exception handling --- gui/bacula-web/backupjob-report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index f3f9f1a992..de4436d140 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -112,7 +112,7 @@ array_push( $jobs, $job); } }else - die( "Unable to get last jobs from catalog " . $result->getMessage() ); + $dbSql->TriggerDBError("Unable to get last jobs from catalog", $result); $dbSql->tpl->assign('jobs', $jobs ); $dbSql->tpl->assign('backupjob_name', $backupjob_name ); -- 2.39.5