Hi list

I have an error that I don't quite get. I have the following files:

game_controller.erl
game_view.erl

I receive the request in acceptmsg(A) inside game_controller.erl and
after doing my processing, I make this call as the return from the
function so the function looks like this:

acceptmsg(A, Some, Parameter) ->
%% some processing which sets Result
{data, Result}.

Then I have a function defined in game_view.erl like this:

acceptmsg(A) ->
        [A].

However when I call the function and try to return the result to the
browser, I get this error:

ERROR erlang  code  crashed:
 File: appmod:0
Reason: {undef,[{game_view,acceptmsg,
                           ["Result"]},
                {erlyweb,'-handle_response/5-fun-0-',5},
                {lists,map,2},
                {erlyweb,handle_response,5},
                {erlyweb,ewc,2},
                {erlyweb,handle_request,6},
                {yaws_server,deliver_dyn_part,8},
                {yaws_server,aloop,3}]}
Req: {http_request,'GET',
                   {abs_path,"/erltsb/game/acceptmsg/some/
parameters"},
                   {1,1}}

Anyone seen something like this or know what the problem is? I am
exporting all the relevant functions in the files.

Nii Amon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to