Browse Source

Fix a small typo in the rest_init error message

Loïc Hoguin 12 years ago
parent
commit
5e6aab756a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_rest.erl

+ 1 - 1
src/cowboy_rest.erl

@@ -73,7 +73,7 @@ upgrade(_ListenerPid, Handler, Opts, Req) ->
 	catch Class:Reason ->
 		PLReq = cowboy_req:to_list(Req),
 		error_logger:error_msg(
-			"** Handler ~p terminating in rest_init/3~n"
+			"** Handler ~p terminating in rest_init/2~n"
 			"   for the reason ~p:~p~n** Options were ~p~n"
 			"** Request was ~p~n** Stacktrace: ~p~n~n",
 			[Handler, Class, Reason, Opts, PLReq, erlang:get_stacktrace()]),