From: Davide Franco Date: Fri, 1 Jul 2011 17:04:32 +0000 (+0200) Subject: bacula-web: Replaced exception handler by TriggerDBError() function in jobs page X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01742bf6648753e9bbe6d4c9ee162a5188453c82;p=bacula%2Fbacula bacula-web: Replaced exception handler by TriggerDBError() function in jobs page --- 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 ) ) {