From: Eric Bollengier Date: Thu, 7 Apr 2016 08:15:39 +0000 (+0200) Subject: Fix the restore termination string in the job report to take in account JobErrors... X-Git-Tag: Release-7.4.1~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed0ffe8134b3b5f26ae638dc82619dae7beb0721;p=bacula%2Fbacula Fix the restore termination string in the job report to take in account JobErrors and SDErrors When SDErrors or JobErrors (from the DIR/FD) are > 0, we display Termination: Restore OK -- with errors instead of Termination: Restore OK --- diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index 8a00a0f47d..1fe0d74231 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -608,6 +608,10 @@ void restore_cleanup(JCR *jcr, int TermCode) case JS_Terminated: if (jcr->ExpectedFiles > jcr->jr.JobFiles) { term_msg = _("Restore OK -- warning file count mismatch"); + + } else if (jcr->JobErrors > 0 || jcr->SDErrors > 0) { + term_msg = _("Restore OK -- with errors"); + } else { term_msg = _("Restore OK"); }