[erlang-questions] case error

Wes James comptekki@REDACTED
Thu Nov 10 04:29:26 CET 2011


I have a case like this:

case file:read_file(Args) of
          {ok, Data} ->
                          ...;
          {error, Reason} ->
                          ....
end;

but when I run the code I get:


exit value: {{case_clause,{ok,<<524 bytes>>}},[{module,fun,1}]}

What am I doing wrong here?

thanks,

-wes



More information about the erlang-questions mailing list