Skip to content

Commit 2743c7c

Browse files
committed
use the helper to printStackTrace
1 parent 8e5d762 commit 2743c7c

File tree

1 file changed

+4
-4
lines changed
  • src/main/java/org/jruby/ext/openssl/x509store

1 file changed

+4
-4
lines changed

src/main/java/org/jruby/ext/openssl/x509store/Lookup.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,13 @@ private InputStream wrapJRubyNormalizedInputStream(String file) throws IOExcepti
393393
}
394394
catch (FileExistsException ex) {
395395
// should not happen because ModeFlag does not contain CREAT.
396-
ex.printStackTrace(System.err);
397-
throw new IllegalStateException(ex.getMessage(), ex);
396+
OpenSSL.debugStackTrace(ex);
397+
throw new IllegalStateException(ex);
398398
}
399399
catch (InvalidValueException ex) {
400400
// should not happen because ModeFlasg does not contain APPEND.
401-
ex.printStackTrace(System.err);
402-
throw new IllegalStateException(ex.getMessage(), ex);
401+
OpenSSL.debugStackTrace(ex);
402+
throw new IllegalStateException(ex);
403403
}
404404
}
405405
}

0 commit comments

Comments
 (0)