From ed0ffe8134b3b5f26ae638dc82619dae7beb0721 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 7 Apr 2016 10:15:39 +0200 Subject: [PATCH] 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 --- bacula/src/dird/restore.c | 4 ++++ 1 file changed, 4 insertions(+) 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"); } -- 2.39.5