Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r12279 r12620 23 23 import org.openstreetmap.josm.tools.CheckParameterUtil; 24 24 import org.openstreetmap.josm.tools.HttpClient; 25 import org.openstreetmap.josm.tools.Logging; 25 26 import org.xml.sax.SAXException; 26 27 … … 117 118 if (pi.downloadlink == null) { 118 119 String msg = tr("Cannot download plugin ''{0}''. Its download link is not known. Skipping download.", pi.name); 119 Main.warn(msg);120 Logging.warn(msg); 120 121 throw new PluginDownloadException(msg); 121 122 } … … 131 132 String msg = tr("Cannot download plugin ''{0}''. Its download link ''{1}'' is not a valid URL. Skipping download.", 132 133 pi.name, pi.downloadlink); 133 Main.warn(msg);134 Logging.warn(msg); 134 135 throw new PluginDownloadException(msg, e); 135 136 } catch (IOException e) { … … 150 151 String message = tr("Failed to create plugin directory ''{0}''", pluginDir.toString()); 151 152 lastException = new PluginDownloadException(message); 152 Main.error(message);153 Logging.error(message); 153 154 failed.addAll(toUpdate); 154 155 return; … … 159 160 return; 160 161 String message = tr("Downloading Plugin {0}...", d.name); 161 Main.info(message);162 Logging.info(message); 162 163 progressMonitor.subTask(message); 163 164 progressMonitor.worked(1); … … 167 168 } catch (PluginDownloadException e) { 168 169 lastException = e; 169 Main.error(e);170 Logging.error(e); 170 171 failed.add(d); 171 172 continue;
Note:
See TracChangeset
for help on using the changeset viewer.