From: Kern Sibbald Date: Mon, 17 Aug 2020 16:38:48 +0000 (+0200) Subject: Clarify SD vbackup device error message X-Git-Tag: Release-9.6.6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c143c651c776356092b880b55fdf006b059670ad;p=thirdparty%2Fbacula.git Clarify SD vbackup device error message --- diff --git a/bacula/src/stored/vbackup.c b/bacula/src/stored/vbackup.c index a78227802..c91d0e404 100644 --- a/bacula/src/stored/vbackup.c +++ b/bacula/src/stored/vbackup.c @@ -69,8 +69,12 @@ bool do_vbackup(JCR *jcr) Dmsg1(20, "Start read data. newbsr=%d\n", jcr->use_new_match_all); - if (!jcr->read_dcr || !jcr->dcr) { - Jmsg(jcr, M_FATAL, 0, _("Read and write devices not properly initialized.\n")); + if (!jcr->read_dcr) { + Jmsg(jcr, M_FATAL, 0, _("Read device not initialized or defined for this job.\n")); + goto bail_out; + } + if (!jcr->dcr) { + Jmsg(jcr, M_FATAL, 0, _("Write device not initialized or defined for this job.\n")); goto bail_out; } Dmsg2(100, "read_dcr=%p write_dcr=%p\n", jcr->read_dcr, jcr->dcr);