]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Improved database exception handling
authorDavide Franco <bacula-dev@dflc.ch>
Sat, 2 Jul 2011 10:23:55 +0000 (12:23 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:19 +0000 (14:49 +0200)
gui/bacula-web/backupjob-report.php

index f3f9f1a992cc03e996976703b9174055124bdf85..de4436d140a750f51cc0d78b2d4378f875bad930 100644 (file)
                array_push( $jobs, $job);\r
        }               
   }else\r
-       die( "Unable to get last jobs from catalog " . $result->getMessage() );\r
+       $dbSql->TriggerDBError("Unable to get last jobs from catalog", $result);
     \r
   $dbSql->tpl->assign('jobs', $jobs );
   $dbSql->tpl->assign('backupjob_name', $backupjob_name );