Structs

Luke Gorrie luke@REDACTED
Thu Jan 16 14:26:13 CET 2003


Mikael Karlsson <mikael.karlsson@REDACTED> wrote:
> Sorry, wrong badmatch
> guess it should be
> 
> connect(Host, User, Password) ->
>     case catch connect1(Host, User, Password) of
> 	{ok,Result} ->
> 	    {ok,Result};
> 	{'EXIT´,{ {badmatch,{error, Rsn}},_}} ->
> 	    {error, otp_ftp:formaterror(Rsn)}
>     end.

I'm too scared of catching badmatch errors caused by other code that
I'm calling, in the otp_ftp module :-)

-Luke




More information about the erlang-questions mailing list