]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add an error message when restore failed
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 24 Nov 2007 12:24:40 +0000 (12:24 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 24 Nov 2007 12:24:40 +0000 (12:24 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5977 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/cgi/bresto.pl

index aa29574811b5d0d0219f9e1a1d9301994542834e..6f773d3f139e38775bee3a3644d11d1a273aeaad 100755 (executable)
@@ -896,6 +896,14 @@ SELECT btemp.JobId, btemp.FileIndex, btemp.FilenameId, btemp.PathId
                               file      => "?b2$$");
     
     $bvfs->dbh_do("DROP TABLE b2$$");
+
+    if (!$jobid) {
+       print CGI::header('text/html');
+       $bvfs->display_begin();
+       $bvfs->error("Can't start your job:<br/>" . $bconsole->before());
+       $bvfs->display_end();
+       exit 0;
+    }
     sleep(2);
     print CGI::redirect("bweb.pl?action=dsp_cur_job;jobid=$jobid") ;
     exit 0;