]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
cloud: Fix #7986 About incorrect message when wait_one_transfer fails
authorNorbert Bizet <norbert.bizet@baculasystems.com>
Thu, 29 Jul 2021 14:36:38 +0000 (10:36 -0400)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/src/stored/cloud_dev.c

index ee2a54224178abe1cf1f91c612764a367e9eed82..c403a4f28c2aaa8b471c6281d692bf6c5130b920 100644 (file)
@@ -1317,9 +1317,9 @@ bool cloud_dev::wait_one_transfer(DCR *dcr, char *VolName, uint32_t part)
       dcr->jcr->setJobStatus(JS_Running);
 
       if (!ok) {
-         Qmsg2(dcr->jcr, M_FATAL, 0,
-               _("Unable to download Volume=\"%s\"%s.\n"), VolName,
-               (part==1)?" label":"");
+         Qmsg3(dcr->jcr, M_FATAL, 0,
+               _("Unable to download Volume=\"%s\"%s. %s\n"), VolName,
+               (part == 1) ? " label" : "", item->m_message ? item->m_message:"");
       }
       return ok;
    } else {