]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/append.c
- Remove \a and -e from error echos in most Makefiles.
[bacula/bacula] / bacula / src / stored / append.c
index 40db5cd2bbc993c687292650aacad6f0fb04dc62..8904fad7710a19b3f4293ceaa7f00974a5804880 100644 (file)
@@ -266,8 +266,9 @@ bool do_append_data(JCR *jcr)
       Dmsg0(90, "back from write_end_session_label()\n");
       /* Flush out final partial block of this session */
       if (!write_block_to_device(dcr)) {
+         Jmsg2(jcr, M_FATAL, 0, _("Fatal append error on device %s: ERR=%s\n"),
+              dev->print_name(), strerror_dev(dev));
          Dmsg0(100, _("Set ok=FALSE after write_block_to_device.\n"));
-        set_jcr_job_status(jcr, JS_ErrorTerminated);
         ok = false;
       }
    }