Webmachine likes to have an error handler set, deep down in its code.

This commit is contained in:
Michael Bridgen 2011-02-22 17:15:35 +00:00
parent d6ff89449d
commit cb0079c0d4
1 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,12 @@
%% We hardwire the "error handler" and use a "logging module" if
%% 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, none).