]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak minor error message improvements
authorKern Sibbald <kern@sibbald.com>
Thu, 18 May 2017 21:05:33 +0000 (23:05 +0200)
committerKern Sibbald <kern@sibbald.com>
Mon, 22 May 2017 13:01:43 +0000 (15:01 +0200)
bacula/src/stored/dev.c
bacula/src/stored/dircmd.c

index 187a083af1eccebe6ce444f7c0a18fb8829c65d0..95eb4753c038534e2d339a8e02003d7a27f6d11f 100644 (file)
@@ -868,13 +868,13 @@ bool DEVICE::weof(DCR */*dcr*/, int num)
 
    if (!is_open()) {
       dev_errno = EBADF;
-      Mmsg0(errmsg, _("Bad call to weof_dev. Device not open\n"));
+      Mmsg1(errmsg, _("Bad call to weof_dev. Device %s not open\n"), print_name());
       Emsg0(M_FATAL, 0, errmsg);
       return false;
    }
 
    if (!can_append()) {
-      Mmsg0(errmsg, _("Attempt to WEOF on non-appendable Volume\n"));
+      Mmsg1(errmsg, _("Attempt to WEOF on non-appendable Volume %s\n"), VolHdr.VolumeName);
       Emsg0(M_FATAL, 0, errmsg);
       return false;
    }
index 990a2febe0dbb7c89a20b37211f0dc770b2e4e05..5f2d2a71918425ea5ead7aa3953f0545e967e3a2 100644 (file)
@@ -969,7 +969,8 @@ static void label_volume_if_ok(DCR *dcr, char *oldname,
    case VOL_NO_LABEL:
       if (!dev->write_volume_label(dcr, newname, poolname,
               relabel, true /* write label now */)) {
-         dir->fsend(_("3912 Failed to label Volume: ERR=%s\n"), dcr->jcr->errmsg);
+         dir->fsend(_("3912 Failed to label Volume %s: ERR=%s\n"),
+            newname, dcr->jcr->errmsg);
          break;
       }
       volCatBytes = dev->VolCatInfo.VolCatBytes;