From: Eric Bollengier Date: Sat, 24 Nov 2007 12:24:40 +0000 (+0000) Subject: ebl Add an error message when restore failed X-Git-Tag: Release-3.0.0~2208 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43cad40d541f2d31fc6e290a56c7a357a8ee596d;p=bacula%2Fbacula ebl Add an error message when restore failed git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5977 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/cgi/bresto.pl b/gui/bweb/cgi/bresto.pl index aa29574811..6f773d3f13 100755 --- a/gui/bweb/cgi/bresto.pl +++ b/gui/bweb/cgi/bresto.pl @@ -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:
" . $bconsole->before()); + $bvfs->display_end(); + exit 0; + } sleep(2); print CGI::redirect("bweb.pl?action=dsp_cur_job;jobid=$jobid") ; exit 0;