From: Kern Sibbald Date: Mon, 19 Jul 2010 14:57:22 +0000 (+0200) Subject: Tweak add bstrerror output if snapshot fails X-Git-Tag: Release-5.2.1~1209 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e95021b0bb11f9a065bacae8c0385c40bef1a9c7;p=bacula%2Fbacula Tweak add bstrerror output if snapshot fails --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 1b045a05c3..61d1ca1077 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1820,8 +1820,8 @@ static int backup_cmd(JCR *jcr) if (get_win32_driveletters(jcr->ff, szWinDriveLetters)) { Jmsg(jcr, M_INFO, 0, _("Generate VSS snapshots. Driver=\"%s\", Drive(s)=\"%s\"\n"), g_pVSSClient->GetDriverName(), szWinDriveLetters); if (!g_pVSSClient->CreateSnapshots(szWinDriveLetters)) { - Jmsg(jcr, M_WARNING, 0, _("Generate VSS snapshots failed.\n")); - jcr->JobErrors++; + berrno be; + Jmsg(jcr, M_FATAL, 0, _("Generate VSS snapshots failed. ERR=%s\n"), be.bstrerror()); } else { /* tell user if snapshot creation of a specific drive failed */ int i;