diff options
author | Sverker Eriksson <[email protected]> | 2018-03-22 16:24:16 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-03-22 16:24:16 +0100 |
commit | d0bf4974c4eb2808444b8075db994d10bca5c77c (patch) | |
tree | 76e6b64b53ff9e8ca2dcedf920e4196361d0251d /lib | |
parent | 7e011bfc8a26a967d9475862634b2a2c54f0e5de (diff) | |
parent | 6ee8cc56db53fd7951fb3bacfd6621c72fdf3ced (diff) | |
download | otp-d0bf4974c4eb2808444b8075db994d10bca5c77c.tar.gz otp-d0bf4974c4eb2808444b8075db994d10bca5c77c.tar.bz2 otp-d0bf4974c4eb2808444b8075db994d10bca5c77c.zip |
Merge branch 'sverker/enif-name-funcs/OTP-14994'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/crypto/src/crypto.erl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl index ec2a1dba0a..46775989ae 100644 --- a/lib/crypto/src/crypto.erl +++ b/lib/crypto/src/crypto.erl @@ -847,8 +847,13 @@ on_load() -> case Status of ok -> ok; {error, {E, Str}} -> - error_logger:error_msg("Unable to load crypto library. Failed with error:~n\"~p, ~s\"~n" - "OpenSSL might not be installed on this system.~n",[E,Str]), + Fmt = "Unable to load crypto library. Failed with error:~n\"~p, ~s\"~n~s", + Extra = case E of + load_failed -> + "OpenSSL might not be installed on this system.\n"; + _ -> "" + end, + error_logger:error_msg(Fmt, [E,Str,Extra]), Status end. |