Changeset 6643 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
- Timestamp:
- 2014-01-06T16:39:45+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r6615 r6643 560 560 msg = null; 561 561 } catch (PluginException e) { 562 Main.error(e.getMessage()); 563 Throwable cause = e.getCause(); 564 if (cause != null) { 565 msg = cause.getLocalizedMessage(); 566 if (msg != null) { 567 Main.error("Cause: " + cause.getClass().getName()+": " + msg); 568 } else { 569 cause.printStackTrace(); 570 } 571 } 562 Main.error(e); 572 563 if (e.getCause() instanceof ClassNotFoundException) { 573 564 msg = tr("<html>Could not load plugin {0} because the plugin<br>main class ''{1}'' was not found.<br>" … … 575 566 } 576 567 } catch (Throwable e) { 577 e.printStackTrace();568 Main.error(e); 578 569 } 579 570 if (msg != null && confirmDisablePlugin(parent, msg, plugin.name)) { … … 687 678 future.get(); 688 679 } catch(ExecutionException e) { 689 e.printStackTrace();680 Main.error(e); 690 681 return null; 691 682 } catch(InterruptedException e) { … … 817 808 } catch (PluginException e) { 818 809 Main.warn(tr("Failed to find plugin {0}", name)); 819 e.printStackTrace();810 Main.error(e); 820 811 } 821 812 } … … 858 849 } catch (ExecutionException e) { 859 850 Main.warn(tr("Failed to download plugin information list")+": ExecutionException"); 860 e.printStackTrace();851 Main.error(e); 861 852 // don't abort in case of error, continue with downloading plugins below 862 853 } catch (InterruptedException e) { … … 905 896 future.get(); 906 897 } catch(ExecutionException e) { 907 e.printStackTrace();898 Main.error(e); 908 899 alertFailedPluginUpdate(parent, pluginsToUpdate); 909 900 return plugins; … … 1098 1089 pi.updateFromJar(new PluginInformation(downloadedPluginFile, pi.name)); 1099 1090 } catch(PluginException e) { 1100 e.printStackTrace();1091 Main.error(e); 1101 1092 } 1102 1093 }
Note:
See TracChangeset
for help on using the changeset viewer.
