From faa96ca3b3baf4385f3ef8627c69e89cf058e268 Mon Sep 17 00:00:00 2001 From: Mikal Villa Date: Tue, 11 Aug 2020 22:46:23 +0200 Subject: [PATCH] Fix build error. erlang:get_stacktrace/0 is deprecated and will be removed in OTP 24. --- src/erlport.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/erlport.erl b/src/erlport.erl index ffa0670c..cc67f847 100644 --- a/src/erlport.erl +++ b/src/erlport.erl @@ -388,9 +388,8 @@ call_mfa(Module, Function, Args) -> when is_atom(Language) andalso is_atom(Type) andalso is_list(Trace) -> {error, Error}; - Type:Reason -> - Trace = erlang:get_stacktrace(), - {error, {erlang, Type, Reason, Trace}} + Type:Reason:Stacktrace -> + {error, {erlang, Type, Reason, Stacktrace}} end. %%