From: Davide Franco Date: Sat, 2 Jul 2011 10:23:55 +0000 (+0200) Subject: bacula-web: Improved database exception handling X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd78cdb1c1358233c5ea0526f0de9467896eaaf6;p=bacula%2Fbacula bacula-web: Improved database exception handling --- 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 );