Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-78

Better error message in MultiPartEmail.attach()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.2
    • None

    Description

      Please replace line 367 of org.apache.commons.mail.MultiPartEmail

      [code]
      throw new EmailException("Invalid URL set");
      [code]

      with

      [code]
      throw new EmailException("Invalid URL: "+url, e);
      [code]

      to generate a better error message when an IOException is thrown.

      Attachments

        1. EMAIL-78-patch.txt
          0.8 kB
          Corey Scott

        Activity

          People

            sgoeschl Siegfried Goeschl
            digulla Aaron Digulla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: