james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1136404 - /james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java
Date Thu, 16 Jun 2011 12:37:45 GMT
Author: bago
Date: Thu Jun 16 12:37:45 2011
New Revision: 1136404

URL: http://svn.apache.org/viewvc?rev=1136404&view=rev
Log:
Improved exception messages

Modified:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java?rev=1136404&r1=1136403&r2=1136404&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java Thu
Jun 16 12:37:45 2011
@@ -263,7 +263,7 @@ public class MimeWriter {
         String boundary = contentType.getBoundary();
         if (boundary == null)
             throw new IllegalArgumentException(
-                    "Multipart boundary not specified");
+                    "Multipart boundary not specified. Mime-Type: "+contentType.getMimeType()+",
Raw: "+contentType.toString());
 
         return ContentUtil.encode(boundary);
     }



Mime
View raw message