[erlang-questions] case error
József Bérces
jozsef.berces@REDACTED
Thu Nov 10 04:34:26 CET 2011
Hi Wes,
I would suspect that you assigned some value to the variable Data in the same function earlier. So now it does not match the info read from the file.
BR,
Jozsef
-----Original Message-----
From: erlang-questions-bounces@REDACTED [mailto:erlang-questions-bounces@REDACTED] On Behalf Of Wes James
Sent: Thursday, November 10, 2011 10:29
To: erlang-questions@REDACTED
Subject: [erlang-questions] case error
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
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list