From 00947d1a8fe0a2c006878e0df9b66ee864737eea Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 21 Jun 2005 07:38:28 +0000 Subject: [PATCH] Print error message in job report of DVD open fails git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2155 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index 45fd9e071a..3fc68246b0 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -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); } -- 2.39.2