mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +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_lib("xmpp/include/xmpp.hrl").
|
||||
-include("ejabberd_http.hrl").
|
||||
-include("ejabberd_stacktrace.hrl").
|
||||
-include_lib("kernel/include/file.hrl").
|
||||
|
||||
-record(state, {sockmod,
|
||||
@ -373,10 +374,10 @@ process(Handlers, Request) ->
|
||||
try
|
||||
HandlerModule:process(LocalPath, Request)
|
||||
catch
|
||||
Class:Reason:Stack ->
|
||||
?EX_RULE(Class, Reason, Stack) ->
|
||||
?ERROR_MSG(
|
||||
"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)
|
||||
end
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user