Ignore:
Timestamp:
2014-01-06T16:39:45+01:00 (10 years ago)
Author:
Don-vip
Message:

global replacement of e.printStackTrace() by Main.error(e)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r6552 r6643  
    181181        } catch (MalformedURLException e) {
    182182            if (canceled) return null;
    183             e.printStackTrace();
     183            Main.error(e);
    184184            return null;
    185185        } catch (IOException e) {
     
    234234                    JosmTextArea area = new JosmTextArea(details);
    235235                    area.setEditable(false);
    236                     area.setLineWrap(true); 
    237                     area.setWrapStyleWord(true); 
     236                    area.setLineWrap(true);
     237                    area.setWrapStyleWord(true);
    238238                    JScrollPane scrollPane = new JScrollPane(area);
    239239                    scrollPane.setPreferredSize(new Dimension(500, 300));
     
    273273        } catch (MalformedURLException e) {
    274274            if (canceled) return;
    275             e.printStackTrace();
     275            Main.error(e);
    276276            return;
    277277        } catch (IOException e) {
     
    322322        } catch(IOException e) {
    323323            // just failed to write the cache file. No big deal, but log the exception anyway
    324             e.printStackTrace();
     324            Main.error(e);
    325325        } finally {
    326326            if (writer != null) {
     
    367367        } catch (PluginListParseException e) {
    368368            Main.error(tr("Failed to parse plugin list document from site ''{0}''. Skipping site. Exception was: {1}", site, e.toString()));
    369             e.printStackTrace();
     369            Main.error(e);
    370370        }
    371371    }
Note: See TracChangeset for help on using the changeset viewer.