mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Make sure the correct callback name is displayed in websocket errors
This commit is contained in:
parent
d7eec7d8c3
commit
30a1d13ae9
1 changed files with 2 additions and 2 deletions
|
@ -378,11 +378,11 @@ handler_call(State=#state{handler=Handler, opts=Opts}, Req, HandlerState,
|
|||
websocket_close(State, Req2, HandlerState2, {normal, shutdown})
|
||||
catch Class:Reason ->
|
||||
error_logger:error_msg(
|
||||
"** Handler ~p terminating in websocket_handle/3~n"
|
||||
"** Handler ~p terminating in ~p/3~n"
|
||||
" for the reason ~p:~p~n** Message was ~p~n"
|
||||
"** Options were ~p~n** Handler state was ~p~n"
|
||||
"** Request was ~p~n** Stacktrace: ~p~n~n",
|
||||
[Handler, Class, Reason, Message, Opts,
|
||||
[Handler, Callback, Class, Reason, Message, Opts,
|
||||
HandlerState, Req, erlang:get_stacktrace()]),
|
||||
websocket_close(State, Req, HandlerState, {error, handler})
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue