]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix the restore termination string in the job report to take in account JobErrors...
authorEric Bollengier <eric@baculasystems.com>
Thu, 7 Apr 2016 08:15:39 +0000 (10:15 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 31 May 2016 06:24:13 +0000 (08:24 +0200)
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

index 8a00a0f47d5d8f39e51ee9e69e7f5677a0e335d2..1fe0d742311361070ed0674625b918ed880cc742 100644 (file)
@@ -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");
       }