From 01742bf6648753e9bbe6d4c9ee162a5188453c82 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 1 Jul 2011 19:04:32 +0200 Subject: [PATCH] bacula-web: Replaced exception handler by TriggerDBError() function in jobs page --- gui/bacula-web/jobs.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index 23745877ee..f1b84d0c0e 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -87,8 +87,7 @@ $jobsresult = $dbSql->db_link->query( $query ); if( PEAR::isError( $jobsresult ) ) { - echo "SQL query = $query
"; - die("Unable to get last failed jobs from catalog" . $jobsresult->getMessage() ); + $dbSql->TriggerDBError( "Unable to get last failed jobs from catalog", $jobresult ); }else { while( $job = $jobsresult->fetchRow( DB_FETCHMODE_ASSOC ) ) { -- 2.39.5