diff options
-rw-r--r-- | plugins/asciidoc.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/asciidoc.mk b/plugins/asciidoc.mk index 6253994..5b32c91 100644 --- a/plugins/asciidoc.mk +++ b/plugins/asciidoc.mk @@ -48,6 +48,7 @@ MAN_VERSION ?= $(PROJECT_VERSION) define asciidoc2man.erl try [begin + io:format(" ADOC ~s~n", [F]), ok = asciideck:to_manpage(asciideck:parse_file(F), #{ compress => gzip, outdir => filename:dirname(F), @@ -56,7 +57,8 @@ try }) end || F <- [$(shell echo $(addprefix $(comma)\",$(addsuffix \",$1)) | sed 's/^.//')]], halt(0) -catch _:_ -> +catch C:E -> + io:format("Exception ~p:~p~nStacktrace: ~p~n", [C, E, erlang:get_stacktrace()]), halt(1) end. endef |