Commons Email
  1. Commons Email
  2. EMAIL-78

Better error message in MultiPartEmail.attach()

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Labels:
      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.

        Activity

          People

          • Assignee:
            Siegfried Goeschl
            Reporter:
            Aaron Digulla
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development