Ignore:
Timestamp:
2016-01-25T00:36:01+01:00 (8 years ago)
Author:
Don-vip
Message:

see #10588 - properly manage exception feedback in PluginDownloadTask. Removes a Findbugs warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java

    r9616 r9621  
    9898        Collection<PluginInformation> downloaded = task.getDownloadedPlugins();
    9999        Collection<PluginInformation> failed = task.getFailedPlugins();
     100        Exception exception = task.getLastException();
    100101        StringBuilder sb = new StringBuilder();
    101102        if (!downloaded.isEmpty()) {
     
    124125            }
    125126            sb.append("</ul>");
     127        }
     128        if (exception != null) {
     129            // Same i18n string in ExceptionUtil.explainBadRequest()
     130            sb.append(tr("<br>Error message(untranslated): {0}", exception.getMessage()));
    126131        }
    127132        return sb.toString();
Note: See TracChangeset for help on using the changeset viewer.