Skip to content

Commit

Permalink
Log warning when we can not load certs from System.keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
starbelly committed Nov 22, 2024
1 parent dcc396a commit e461e03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/public_key/src/pubkey_os_cacerts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

-include("public_key.hrl").
-include_lib("kernel/include/file.hrl").
-include_lib("kernel/include/logger.hrl").
-export([load/0, load/1, get/0, clear/0, format_error/2]).

-on_load(on_load/0).
Expand Down Expand Up @@ -179,7 +180,9 @@ load_darwin() ->
{ok, Bin2} ->
decode_result(<<Bin1/binary, Bin2/binary>>);
Err ->
Err
?LOG_WARNING(
"Unable to load additional OS certificates from System.keychain : ~p~n", [Err]),
decode_result(Bin1)
end;
Err ->
Err
Expand Down

0 comments on commit e461e03

Please sign in to comment.