Webmachine likes to have an error handler set, deep down in its code.
This commit is contained in:
parent
d6ff89449d
commit
cb0079c0d4
|
|
@ -14,7 +14,12 @@
|
||||||
%% We hardwire the "error handler" and use a "logging module" if
|
%% We hardwire the "error handler" and use a "logging module" if
|
||||||
%% supplied.
|
%% supplied.
|
||||||
|
|
||||||
-export([makeloop/1, makeloop/2]).
|
-export([makeloop/1, makeloop/2, setup/0]).
|
||||||
|
|
||||||
|
setup() ->
|
||||||
|
%% Many internal procedures in webmachine check the application
|
||||||
|
%% env for the error_handler.
|
||||||
|
application:set_env(webmachine, error_handler, webmachine_error_handler).
|
||||||
|
|
||||||
makeloop(Dispatch) ->
|
makeloop(Dispatch) ->
|
||||||
makeloop(Dispatch, none).
|
makeloop(Dispatch, none).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue