From c0891cdfe9aaae96f95cc45b9a07271ad9a5a07c Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Wed, 13 Feb 2013 15:06:17 +0100 Subject: Added event/3 and clarified error message --- lib/ssh/src/ssh_transport.erl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/ssh/src/ssh_transport.erl') diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index 0eb971a44c..a47a55b707 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -361,13 +361,7 @@ handle_kexdh_reply(#ssh_msg_kexdh_reply{public_host_key = HostKey, f = F, code = ?SSH_DISCONNECT_KEY_EXCHANGE_FAILED, description = "Key exchange failed", language = "en"}, - ErrorMsg = case Error of - {_, What} -> - {What, []}; - Else -> - {Else, []} - end, - throw({ErrorMsg, Disconnect}) + throw({Error, Disconnect}) end. handle_kex_dh_gex_request(#ssh_msg_kex_dh_gex_request{min = _Min, -- cgit v1.2.3