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/data/imagery/WmsCache.java

    r6248 r6643  
    126126            } catch (IOException e) {
    127127                Main.error("Unable to load layers index for wms cache");
    128                 e.printStackTrace();
     128                Main.error(e);
    129129            }
    130130
     
    152152                } catch (IOException e) {
    153153                    Main.error("Unable to save layer index for wms cache");
    154                     e.printStackTrace();
     154                    Main.error(e);
    155155                }
    156156            }
     
    201201        } catch (Exception e) {
    202202            if (indexFile.exists()) {
    203                 e.printStackTrace();
     203                Main.error(e);
    204204                Main.info("Unable to load index for wms-cache, new file will be created");
    205205            } else {
     
    298298        } catch (Exception e) {
    299299            Main.error("Failed to save wms-cache file");
    300             e.printStackTrace();
     300            Main.error(e);
    301301        }
    302302    }
     
    365365            } catch (IOException e) {
    366366                Main.error("Unable to load file from wms cache");
    367                 e.printStackTrace();
     367                Main.error(e);
    368368                return null;
    369369            }
Note: See TracChangeset for help on using the changeset viewer.