aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-02-17 14:30:19 +0100
committerIngela Anderton Andin <[email protected]>2012-02-17 14:30:19 +0100
commit0e4ae2a2b5d291b5e918f3ab9e675c4137d1888b (patch)
treed666a8296dbd4c6d128c5a75c6648afd96c39219 /lib/ssh/test/ssh_test_lib.erl
parent102c34e414f573081a93ca49162dd78cf91949b7 (diff)
downloadotp-0e4ae2a2b5d291b5e918f3ab9e675c4137d1888b.tar.gz
otp-0e4ae2a2b5d291b5e918f3ab9e675c4137d1888b.tar.bz2
otp-0e4ae2a2b5d291b5e918f3ab9e675c4137d1888b.zip
Improved error handling
Diffstat (limited to 'lib/ssh/test/ssh_test_lib.erl')
-rw-r--r--lib/ssh/test/ssh_test_lib.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/ssh/test/ssh_test_lib.erl b/lib/ssh/test/ssh_test_lib.erl
index 26bbdf5c5c..c8a4fe1c62 100644
--- a/lib/ssh/test/ssh_test_lib.erl
+++ b/lib/ssh/test/ssh_test_lib.erl
@@ -43,12 +43,8 @@ connect(Host, Options) ->
connect(any, Port, Options) ->
connect(hostname(), Port, Options);
connect(Host, Port, Options) ->
- case ssh:connect(Host, Port, Options) of
- {ok, ConnectionRef} ->
- ConnectionRef;
- Error ->
- Error
- end.
+ {ok, ConnectionRef} = ssh:connect(Host, Port, Options),
+ ConnectionRef.
daemon(Options) ->
daemon(any, inet_port(), Options).