]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/spool.c
- Remove \a and -e from error echos in most Makefiles.
[bacula/bacula] / bacula / src / stored / spool.c
index e3e4cf3fa7677d7985acdb9e21279c50a25810d7..f38839a4bd12f32cccca64dbd2247553ad8717ef 100644 (file)
@@ -243,6 +243,10 @@ static bool despool_data(DCR *dcr, bool commit)
         break;
       }
       ok = write_block_to_device(dcr);
+      if (!ok) {
+         Jmsg2(jcr, M_FATAL, 0, _("Fatal append error on device %s: ERR=%s\n"),
+              dcr->dev->print_name(), strerror_dev(dcr->dev));
+      }
       Dmsg3(800, "Write block ok=%d FI=%d LI=%d\n", ok, block->FirstIndex, block->LastIndex);
    }
    dcr->block = block;               /* reset block */