]> git.sur5r.net Git - bacula/bacula/commitdiff
Print error message in job report of DVD open fails
authorKern Sibbald <kern@sibbald.com>
Tue, 21 Jun 2005 07:38:28 +0000 (07:38 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 21 Jun 2005 07:38:28 +0000 (07:38 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2155 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/mount.c

index 45fd9e071a7c901f1cdb46da9299844d73d24351..3fc68246b06f617ef4afff3932b02600d026f200 100644 (file)
@@ -260,6 +260,7 @@ read_volume:
     */
    case VOL_IO_ERROR:
       if (dev->is_dvd()) {
+         Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
          return false;       /* we could not write on DVD */
       }
       /* Fall through wanted */
@@ -308,7 +309,6 @@ read_volume:
    default:
       /* Send error message */
       if (!dev->poll) {
-         Jmsg(jcr, M_WARNING, 0, "%s", jcr->errmsg);
       } else {
          Dmsg1(200, "Msg suppressed by poll: %s\n", jcr->errmsg);
       }