Skip to content

Commit

Permalink
Fix up exception message; drop debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Nov 27, 2023
1 parent 96b3d0d commit 4164f8d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ final class OpenSslNativeJna {
String ret = OpenSslMacOS.checkLibrary(Crypto.MACOS_LIBRARY_NAME_DEFAULT);
if (ret != null) {
throw new UnsatisfiedLinkError(
String.format("Cannot load default library '%s'; need jni.library.path! (%s)",
Crypto.MACOS_LIBRARY_NAME_DEFAULT, ret));
String.format("Cannot load default library '%s'; please define %s! (%s)",
Crypto.MACOS_LIBRARY_NAME_DEFAULT, Crypto.JNA_LIBRARY_PATH, ret));
}
}
System.err.println("Lib check4" );
@SuppressWarnings("resource") // NativeLibrary.getInstance returns a singleton
final NativeLibrary crypto = NativeLibrary.getInstance(libraryName);
OpenSslJna.debug("OpenSslNativeJna NativeLibrary.getInstance('%s') -> %s", libraryName, crypto);
Expand Down

0 comments on commit 4164f8d

Please sign in to comment.