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 {