bounce_message_queue(),
State1;
process_terminated(#{sockmod := SockMod, socket := Socket,
- stop_reason := {tls, no_certfile}} = State, Reason) ->
- %% TODO: we probably need to report more TLS errors here
+ stop_reason := {tls, _}} = State, Reason) ->
?ERROR_MSG("(~s) Failed to secure c2s connection: ~s",
[SockMod:pp(Socket), format_reason(State, Reason)]),
State;
terminate(Reason, #{auth_domains := AuthDomains,
sockmod := SockMod, socket := Socket} = State) ->
case maps:get(stop_reason, State, undefined) of
- {tls, no_certfile} = Err ->
- %% TODO: we probably need to report more TLS errors here
+ {tls, _} = Err ->
?ERROR_MSG("(~s) Failed to secure inbound s2s connection: ~s",
[SockMod:pp(Socket), xmpp_stream_in:format_error(Err)]);
_ ->