]> git.sur5r.net Git - bacula/bacula/commitdiff
Simplify messages printed by SD when reserve fails. This should fix bug #1285
authorKern Sibbald <kern@sibbald.com>
Tue, 19 May 2009 15:21:45 +0000 (15:21 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 19 May 2009 15:21:45 +0000 (15:21 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8840 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/reserve.c
bacula/technotes

index e373e8dcaab4f85fb7777f0504fe86fb55ed71d3..67e42be464fd1fd709e2469cb729c64e05f38e9c 100644 (file)
@@ -353,10 +353,8 @@ static bool use_storage_cmd(JCR *jcr)
           */
          unbash_spaces(dir->msg);
          pm_strcpy(jcr->errmsg, dir->msg);
-         Jmsg(jcr, M_INFO, 0, _("Failed command: %s\n"), jcr->errmsg);
-         Jmsg(jcr, M_FATAL, 0, _("\n"
-            "     Device \"%s\" with MediaType \"%s\" requested by DIR not found in SD Device resources.\n"),
-              dev_name.c_str(), media_type.c_str());
+         Jmsg(jcr, M_FATAL, 0, _("Device reservation failed for JobId=%d: %s\n"), 
+              jcr->JobId, jcr->errmsg);
          dir->fsend(NO_device, dev_name.c_str());
 
          Dmsg1(dbglvl, ">dird: %s", dir->msg);
index e024cceca3634984cf1c94a27d1b4e501a67ee90..5f793fc026b915d3854316b98982b9d5d55931a7 100644 (file)
@@ -2,6 +2,9 @@
           
 General:
 
+18May09
+kes  Simplify messages printed by SD when reserve fails. This
+     should fix bug #1285.
 16May09
 kes  Create archivedir.
 15May09