From: Kern Sibbald Date: Wed, 3 Nov 2010 18:21:02 +0000 (+0100) Subject: Make sure JobErrors is always nonzero on fatal error X-Git-Tag: Release-5.2.1~977 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=976d40263747a32cf308a551b4c56c91fa0a24ee;p=bacula%2Fbacula Make sure JobErrors is always nonzero on fatal error --- 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);