24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-19 00:11:01 +02:00

[TECH-1068] Added missing catch in process function

This commit is contained in:
Eric Cestari 2010-09-08 17:25:37 +02:00
parent 49a3424a26
commit a77d53d738

View File

@ -49,7 +49,7 @@
process([Domain | _Rest] = LocalPath, #request{auth = Auth} = Request)-> process([Domain | _Rest] = LocalPath, #request{auth = Auth} = Request)->
UD = get_auth(Auth), UD = get_auth(Auth),
Module = backend(Domain), Module = backend(Domain),
case out(Module, Request, Request#request.method, LocalPath,UD) of case catch out(Module, Request, Request#request.method, LocalPath,UD) of
{'EXIT', Error} -> {'EXIT', Error} ->
?ERROR_MSG("Error while processing ~p : ~n~p", [LocalPath, Error]), ?ERROR_MSG("Error while processing ~p : ~n~p", [LocalPath, Error]),
error(500); error(500);