]> git.sur5r.net Git - bacula/bacula/commitdiff
Add error count to Fatal job errors
authorKern Sibbald <kern@sibbald.com>
Sun, 22 Nov 2009 09:54:35 +0000 (10:54 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 22 Nov 2009 09:54:35 +0000 (10:54 +0100)
bacula/src/filed/backup.c

index d1e5a030abf02aff655643691036db6c27394aa4..d9753d00c8576cb13fb768e88104340b0c2444e4 100644 (file)
@@ -1032,7 +1032,7 @@ static int send_data(JCR *jcr, int stream, FF_PKT *ff_pkt, DIGEST *digest,
       Jmsg(jcr, M_ERROR, 0, _("Read error on file %s. ERR=%s\n"),
          ff_pkt->fname, be.bstrerror(ff_pkt->bfd.berrno));
       if (jcr->JobErrors++ > 1000) {       /* insanity check */
-         Jmsg(jcr, M_FATAL, 0, _("Too many errors.\n"));
+         Jmsg(jcr, M_FATAL, 0, _("Too many errors. JobErrors=%d.\n"), jcr->JobErrors);
       }
    } else if (ff_pkt->flags & FO_ENCRYPT) {
       /*