[OTP-21] Deprecation of erlang:get_stacktrace() call
maximvl opened this issue · comments
Maxim Velesyuk commented
Hi, the new Erlang 21 is deprecating erlang:get_stacktrace()
in order to replace with a new feature to retrieve the stacktrace only in the catch
clause. Currently I can see this call being used in xdb_lib.erl
.
For now it is possible to silence the warning and make the project compilable. Another option would be to pass exception across all the calls between a catch and xdb_lib:raise
, or overall exception strategy should be changed.
What do you think should be the best way to go about it?
Marcos Almonacid commented
I talked to @cabol , we agreed on replacing the erlang:raise/3
calls to error/1