Open TheGeorge opened 2 years ago
Describe the bug When producing chunks, edoc swallows error messages, and only prints a message, that it failed, but not why.
The issues is here https://github.com/erlang/otp/blob/master/lib/edoc/src/edoc_doclet_chunks.erl#L119-L123
catch _:_R:_St -> ?debug("error: ~p\n" "stacktrace:\n~p\n\n", [_R, _St]), {OkSet, true} end.
and should probably be something like this
catch throw:{error, Line, {Fmt, Args}}:_St -> report(Line, File, Fmt, Args), {OkSet, true} end.
Expected behavior Error messages are correctly forwarded to be reported.
Affected versions current master
Putting this in "help wanted" as #5779 seems to have stalled.
Describe the bug When producing chunks, edoc swallows error messages, and only prints a message, that it failed, but not why.
The issues is here https://github.com/erlang/otp/blob/master/lib/edoc/src/edoc_doclet_chunks.erl#L119-L123
and should probably be something like this
Expected behavior Error messages are correctly forwarded to be reported.
Affected versions current master