From 8e1b54204b7f3dfd3e3a45372eb99736779b8aaf Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 3 Nov 2010 19:21:02 +0100 Subject: [PATCH] Make sure JobErrors is always nonzero on fatal error --- bacula/src/lib/message.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index ca6ed8d416..d13a079ca1 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -1264,6 +1264,9 @@ Jmsg(JCR *jcr, int type, utime_t mtime, const char *fmt,...) if (jcr) { set_jcr_job_status(jcr, JS_FatalError); } + if (jcr && jcr->JobErrors == 0) { + jcr->JobErrors = 1; + } break; case M_ERROR: len = bsnprintf(rbuf, sizeof(rbuf), _("%s JobId %u: Error: "), my_name, JobId); -- 2.39.5