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