aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-12-02 17:21:41 +0100
committerLoïc Hoguin <[email protected]>2016-12-02 17:21:41 +0100
commit25704cc22bc00639d622d9f39abdcab2bdcedabc (patch)
tree75b63790e9faf69e1aafc2dc05d6813a8cf7b465
parent0b1932ec65386d08a862cdfc3e01c4b23a7220a2 (diff)
downloaderlang.mk-25704cc22bc00639d622d9f39abdcab2bdcedabc.tar.gz
erlang.mk-25704cc22bc00639d622d9f39abdcab2bdcedabc.tar.bz2
erlang.mk-25704cc22bc00639d622d9f39abdcab2bdcedabc.zip
Make asciideck a little more verbose2016.12.08
-rw-r--r--plugins/asciidoc.mk4
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