Ignore:
Timestamp:
2016-06-24T01:27:35+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S1166 - Exception handlers should preserve the original exceptions

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r10378 r10469  
    205205            update(pref);
    206206        } catch (ProjectionConfigurationException ex) {
     207            Main.trace(ex);
    207208            try {
    208209                update(null);
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r10212 r10469  
    324324                proj = pc.getProjection();
    325325            } catch (RuntimeException e) {
    326                 String cause = e.getMessage();
    327                 Main.warn("Unable to get projection "+code+" with "+pc + (cause != null ? ". "+cause : ""));
     326                Main.warn(e, "Unable to get projection "+code+" with "+pc+':');
    328327            }
    329328        }
Note: See TracChangeset for help on using the changeset viewer.