diff options
author | Loïc Hoguin <[email protected]> | 2023-01-16 15:24:58 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-01-16 15:24:58 +0100 |
commit | 73a2e67e709c38930580a80238e308397472c47d (patch) | |
tree | e049f949922ca87022a80830467faa2d73c9169f /src/asciideck_to_manpage.erl | |
parent | e9a597168760eca6cedbe4a5726b1f90b7a6d21b (diff) | |
download | asciideck-master.tar.gz asciideck-master.tar.bz2 asciideck-master.zip |
Diffstat (limited to 'src/asciideck_to_manpage.erl')
-rw-r--r-- | src/asciideck_to_manpage.erl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/asciideck_to_manpage.erl b/src/asciideck_to_manpage.erl index 7f6cbaf..8e1a19e 100644 --- a/src/asciideck_to_manpage.erl +++ b/src/asciideck_to_manpage.erl @@ -16,10 +16,6 @@ %% description of the format expected for man pages. -module(asciideck_to_manpage). --ifdef(OTP_RELEASE). --compile({nowarn_deprecated_function, [{erlang, get_stacktrace, 0}]}). --endif. - -export([translate/2]). translate(AST, Opts) -> @@ -86,9 +82,9 @@ ast_node(Node={Type, _, _, _}) -> io:format("Ignored AST node ~p~n", [Node]), [] end - catch C:E -> + catch C:E:S -> io:format("Ignored AST node ~p~nReason: ~p:~p~nStacktrace: ~p~n", - [Node, C, E, erlang:get_stacktrace()]), + [Node, C, E, S]), [] end. |