From f88a3ede25e5f52d4174eed39d4f6cec306be94e Mon Sep 17 00:00:00 2001 From: Riccardo Manfrin Date: Wed, 25 Jan 2023 18:20:00 +0100 Subject: [PATCH] Fixup otp25 --- src/soap_server_handler.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soap_server_handler.erl b/src/soap_server_handler.erl index 8c231de..c818094 100644 --- a/src/soap_server_handler.erl +++ b/src/soap_server_handler.erl @@ -136,7 +136,7 @@ handle_message(Message, Soap_req) -> {ok, SoapReq2, _Tail} -> soap_req:http_response(SoapReq2) catch - Class:Reason -> + Class:Reason:Stacktrace -> Soap_error = case {Class, Reason} of {throw, #soap_error{}} -> @@ -144,7 +144,7 @@ handle_message(Message, Soap_req) -> {_, _} -> #soap_error{type = client, class = Class, - stacktrace = erlang:get_stacktrace(), + stacktrace = Stacktrace, reason = Reason, handler = Handler, handler_state = Handler_state,