]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Replaced exception handler by TriggerDBError() function in jobs page
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 1 Jul 2011 17:04:32 +0000 (19:04 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:19 +0000 (14:49 +0200)
gui/bacula-web/jobs.php

index 23745877ee9b80b4c4a6aa73db945edde9c0aedc..f1b84d0c0eddd67c9b98a84b89205a3751a0aed6 100644 (file)
@@ -87,8 +87,7 @@
   $jobsresult = $dbSql->db_link->query( $query );
   
   if( PEAR::isError( $jobsresult ) ) {
-         echo "SQL query = $query <br />";
-         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 ) ) {