Revert previous 3 commits to create clean patch for 6.0.x
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 15 May 2008 17:01:47 +0000 (17:01 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 15 May 2008 17:01:47 +0000 (17:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@656738 13f79535-47bb-0310-9956-ffa450edef68

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

index 31f6cc5..9538edb 100644 (file)
@@ -321,18 +321,13 @@ public class JSSESocketFactory
 
             ks.load(istream, pass.toCharArray());
         } catch (FileNotFoundException fnfe) {
-            log.error(sm.getString("jsse.keystore_load_failed", type, path,
-                    fnfe.getMessage()), fnfe);
             throw fnfe;
         } catch (IOException ioe) {
-            log.error(sm.getString("jsse.keystore_load_failed", type, path,
-                    ioe.getMessage()), ioe);
             throw ioe;      
         } catch(Exception ex) {
-            String msg = sm.getString("jsse.keystore_load_failed", type, path,
-                    ex.getMessage());
-            log.error(msg, ex);
-            throw new IOException(msg);
+            log.error("Exception trying to load keystore " +path,ex);
+            throw new IOException("Exception trying to load keystore " +
+                                  path + ": " + ex.getMessage() );
         } finally {
             if (istream != null) {
                 try {