Author: sgoeschl
Date: Fri Feb  6 17:02:44 2009
New Revision: 741633

URL: http://svn.apache.org/viewvc?rev=741633&view=rev
Log:
[EMAIL-78] Providing better diagnostic messages when attaching fails.

Modified:
    
commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java
    commons/proper/email/trunk/xdocs/changes.xml

Modified: 
commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java
URL: 
http://svn.apache.org/viewvc/commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java?rev=741633&r1=741632&r2=741633&view=diff
==============================================================================
--- 
commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java 
(original)
+++ 
commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java 
Fri Feb  6 17:02:44 2009
@@ -364,7 +364,7 @@
        }
        catch (IOException e)
        {
-           throw new EmailException("Invalid URL set");
+           throw new EmailException("Invalid URL set:" + url, e);
        }
 
        return attach(new URLDataSource(url), name, description, disposition);
@@ -397,7 +397,7 @@
         }
         catch (IOException e)
         {
-            throw new EmailException("Invalid Datasource");
+            throw new EmailException("Invalid Datasource", e);
         }
 
         return attach(ds, name, description, EmailAttachment.ATTACHMENT);

Modified: commons/proper/email/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/email/trunk/xdocs/changes.xml?rev=741633&r1=741632&r2=741633&view=diff
==============================================================================
--- commons/proper/email/trunk/xdocs/changes.xml (original)
+++ commons/proper/email/trunk/xdocs/changes.xml Fri Feb  6 17:02:44 2009
@@ -24,6 +24,9 @@
   <body>
 
     <release version="1.2-SNAPSHOT" date="as in SVN">
+      <action dev="sgoeschl" type="fix" issue="EMAIL-78" due-to="Aaron 
Digulla, Corey Scott">
+        Provide better diagnostics when attaching  documents fail.
+      </action>
       <action dev="sgoeschl" type="fix" issue="EMAIL-70" due-to="F. Andy 
Seidl">
         When mail authentication is required and no username/password is 
supplied
         than the provided mail session is used. If a username/password is found


Reply via email to