]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak add bstrerror output if snapshot fails
authorKern Sibbald <kern@sibbald.com>
Mon, 19 Jul 2010 14:57:22 +0000 (16:57 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 22 Jul 2010 13:43:12 +0000 (15:43 +0200)
bacula/src/filed/job.c

index 4568125f4e439f6056ccf0a70c6742f84809eaa7..f9450eee96bbbfd5bf0d56947c78d1e634cb3f12 100644 (file)
@@ -1618,8 +1618,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;