mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix compilation problem with Erlang/OTP older than 21 introduced recently
Those macros were first introduced in c88a2d0
This commit is contained in:
parent
f6b5a52104
commit
9842b035e3
@ -39,6 +39,7 @@
|
|||||||
-include("logger.hrl").
|
-include("logger.hrl").
|
||||||
-include_lib("xmpp/include/xmpp.hrl").
|
-include_lib("xmpp/include/xmpp.hrl").
|
||||||
-include("ejabberd_http.hrl").
|
-include("ejabberd_http.hrl").
|
||||||
|
-include("ejabberd_stacktrace.hrl").
|
||||||
-include_lib("kernel/include/file.hrl").
|
-include_lib("kernel/include/file.hrl").
|
||||||
|
|
||||||
-record(state, {sockmod,
|
-record(state, {sockmod,
|
||||||
@ -373,10 +374,10 @@ process(Handlers, Request) ->
|
|||||||
try
|
try
|
||||||
HandlerModule:process(LocalPath, Request)
|
HandlerModule:process(LocalPath, Request)
|
||||||
catch
|
catch
|
||||||
Class:Reason:Stack ->
|
?EX_RULE(Class, Reason, Stack) ->
|
||||||
?ERROR_MSG(
|
?ERROR_MSG(
|
||||||
"HTTP handler crashed: ~s",
|
"HTTP handler crashed: ~s",
|
||||||
[misc:format_exception(2, Class, Reason, Stack)]),
|
[misc:format_exception(2, Class, Reason, ?EX_STACK(Stack))]),
|
||||||
erlang:raise(Class, Reason, Stack)
|
erlang:raise(Class, Reason, Stack)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user