diff options
author | Jakub Witczak <kuba@erlang.org> | 2023-01-09 12:59:33 +0100 |
---|---|---|
committer | Jakub Witczak <kuba@erlang.org> | 2023-02-17 16:46:14 +0100 |
commit | afda3f30b9503c905b260faab532532309ed9757 (patch) | |
tree | d14d7a372af5ef2cbbbadc87d8e8bf0304e04ea8 /lib | |
parent | 0863bd30aabd035c83158c78046c5ffda16127e1 (diff) | |
download | erlang-afda3f30b9503c905b260faab532532309ed9757.tar.gz |
ssh: fix kexinit error generation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh/src/ssh_transport.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index e43c345130..4619400cfe 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -432,7 +432,12 @@ kexinit_error(Class, Error, Role, Own, CounterPart) -> _ -> {"Kexinit failed in ~p: ~p:~p", [Role,Class,Error]} end, - io_lib:format(Fmt, Args). + try io_lib:format(Fmt, Args) of + R -> R + catch + _:_ -> + io_lib:format("Kexinit failed in ~p: ~p:~p", [Role, Class, Error]) + end. alg_info(client, Alg) -> alg_info(Alg); |