You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2006/01/25 13:13:59 UTC

svn commit: r372201 - /spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm

Author: felicity
Date: Wed Jan 25 04:13:52 2006
New Revision: 372201

URL: http://svn.apache.org/viewcvs?rev=372201&view=rev
Log:
include the system error message when a write to the bayes journal fails at syswrite()

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm?rev=372201&r1=372200&r2=372201&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/BayesStore/DBM.pm Wed Jan 25 04:13:52 2006
@@ -1122,8 +1122,12 @@
 
     # argh, write failure, give up
     if (!defined $len || $len < 0) {
-      $len = 0 unless (defined $len);
-      warn "bayes: write failed to Bayes journal $path ($len of $nbytes)!\n";
+      my $err = '';
+      if (!defined $len) {
+	$len = 0;
+	$err = "  ($!)";
+      }
+      warn "bayes: write failed to Bayes journal $path ($len of $nbytes)!$err\n";
       last;
     }