From 43cad40d541f2d31fc6e290a56c7a357a8ee596d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 24 Nov 2007 12:24:40 +0000 Subject: [PATCH] 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 --- gui/bweb/cgi/bresto.pl | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5