Improve logging messages associated with previous commit in response to Filip's veto
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 May 2008 07:17:46 +0000 (07:17 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 14 May 2008 07:17:46 +0000 (07:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@656124 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java

index 337d600..e5079c9 100644 (file)
@@ -322,17 +322,17 @@ public class JSSESocketFactory
             ks.load(istream, pass.toCharArray());
         } catch (FileNotFoundException fnfe) {
             log.error(sm.getString("jsse.keystore_load_failed", type, path,
-                    fnfe.getMessage()));
+                    fnfe.getMessage()), fnfe);
             throw fnfe;
         } catch (IOException ioe) {
             log.error(sm.getString("jsse.keystore_load_failed", type, path,
-                    ioe.getMessage()));
+                    ioe.getMessage()), ioe);
             throw ioe;      
         } catch(Exception ex) {
             String msg = sm.getString("jsse.keystore_load_failed", type, path,
                     ex.getMessage());
-            log.error(msg);
-            throw new IOException(msg);
+            log.error(msg, ex);
+            throw new IOException(msg, ex);
         } finally {
             if (istream != null) {
                 try {