]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Enhance failed bpipe to changer error message
authorKern Sibbald <kern@sibbald.com>
Sat, 7 Mar 2020 18:00:14 +0000 (19:00 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 7 Mar 2020 18:00:14 +0000 (19:00 +0100)
bacula/src/stored/autochanger.c

index 24ffacab5f8e779d938e5ce92115bcd42ec737b5..b6a7850f8521ad3c289fedca3f29018aacb5348d 100644 (file)
@@ -672,7 +672,7 @@ bool autochanger_cmd(DCR *dcr, BSOCK *dir, const char *cmd)
    dir->fsend(_("3306 Issuing autochanger \"%s\" command.\n"), cmd);
    bpipe = open_bpipe(changer, timeout, "r");
    if (!bpipe) {
-      dir->fsend(_("3996 Open bpipe failed.\n"));
+      dir->fsend(_("3996 Open bpipe to changer failed: %s.\n"), changer);
       goto bail_out;            /* TODO: check if we need to return false */
    }
    if (bstrcasecmp(cmd, "list") || bstrcasecmp(cmd, "listall")) {