aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_client_channel.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-05-14 15:44:34 +0200
committerHans Nilsson <[email protected]>2018-05-30 12:41:47 +0200
commitd3b29633d42df9dd7d8a2f09d5b0c98f637fbacd (patch)
tree9be287619bc75af0190e8135eb102b662054e078 /lib/ssh/src/ssh_client_channel.erl
parent91b3a08c6f4afcf958171f1815347c8a5806fa97 (diff)
downloadotp-d3b29633d42df9dd7d8a2f09d5b0c98f637fbacd.tar.gz
otp-d3b29633d42df9dd7d8a2f09d5b0c98f637fbacd.tar.bz2
otp-d3b29633d42df9dd7d8a2f09d5b0c98f637fbacd.zip
ssh: Better crash report for bad channel callback module
Diffstat (limited to 'lib/ssh/src/ssh_client_channel.erl')
-rw-r--r--lib/ssh/src/ssh_client_channel.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_client_channel.erl b/lib/ssh/src/ssh_client_channel.erl
index 134d3f08bd..8b5e196412 100644
--- a/lib/ssh/src/ssh_client_channel.erl
+++ b/lib/ssh/src/ssh_client_channel.erl
@@ -180,6 +180,8 @@ init([Options]) ->
{stop, Why} ->
{stop, Why}
catch
+ _:undef ->
+ {stop, {bad_channel_callback_module,Cb}};
_:Reason ->
{stop, Reason}
end.