cabol / erlbus

Simple, Distributed and Scalable PubSub Message Bus written in Erlang

Home Page:https://hexdocs.pm/erlbus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

erlang:get_stacktrace() stop working on v21

jochasinga opened this issue · comments

commented

The use of erlang:get_stacktrace() in here

error:Value ->
Reason = {Value, erlang:get_stacktrace()},
exit(Info, MFA, Reason, Reason);
throw:Value ->
Reason = {{nocatch, Value}, erlang:get_stacktrace()},
exit(Info, MFA, Reason, Reason);
exit:Value ->
exit(Info, MFA, {Value, erlang:get_stacktrace()}, Value)
is failing. Should be modified to use this syntax:

try
    apply(Module, Fun, Args)
  catch
    _Class:Reason:_Stacktrace ->
      exit(Info, MFA, Reason, Reason);
   % ...
  end.

@jochasinga it is fixed now – I'm aiming to publish today a "version bump" with these changes