Changeset 30060


Ignore:
Timestamp:
2015-07-27T23:13:02+12:00 (6 years ago)
Author:
davidb
Message:

Tidy up on how thrown exception is handled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/the-macronizer/trunk/src/java/web/listeners/MyServletContextListener.java

    r29855 r30060  
    6464        try {
    6565            properties.load(getClass().getResourceAsStream(PROPERTIES_PATH));
    66         } catch (IOException e) {
    67             e.printStackTrace();
     66        } catch (Exception e) {
     67        System.err.println("getTempDirectory(): Did not find custom properties file: '"
     68                   + PROPERTIES_PATH + "'");
     69            System.err.println("Defaulting to Java property java.io.tmpdir="
     70                + System.getProperty("java.io.tmpdir"));
     71       
    6872        }
    6973        return new File(properties.getProperty("tmpdir", System.getProperty("java.io.tmpdir")));
Note: See TracChangeset for help on using the changeset viewer.