Show
Ignore:
Timestamp:
27.07.2015 23:13:02 (4 years ago)
Author:
davidb
Message:

Tidy up on how thrown exception is handled

Files:
1 modified

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")));