From mime4j-dev-return-1527-apmail-james-mime4j-dev-archive=james.apache.org@james.apache.org Thu Jun 16 12:38:09 2011 Return-Path: X-Original-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BEE7F6B8D for ; Thu, 16 Jun 2011 12:38:09 +0000 (UTC) Received: (qmail 71235 invoked by uid 500); 16 Jun 2011 12:38:09 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 71201 invoked by uid 500); 16 Jun 2011 12:38:09 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 71191 invoked by uid 99); 16 Jun 2011 12:38:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 12:38:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 12:38:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EA0FA23889BB; Thu, 16 Jun 2011 12:37:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: mime4j-dev@james.apache.org From: bago@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110616123745.EA0FA23889BB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); }