Skip to content

Commit

Permalink
show error message why preview wasn't rendered in preview #251
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed May 3, 2019
1 parent 082f200 commit 4bcf692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/asciidoc/intellij/AsciiDoc.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public String render(String text, List<String> extensions, Notifier notifier) {
} catch (AsciidoctorCoreException ace) {
log.warn("unable to render AsciidDoc document", ace);
logHandler.log(new LogRecord(Severity.FATAL, ace.getMessage()));
return null;
return "unable to render AsciidDoc document: " + ace.getMessage() + "<p>(the full exception stack trace is available in the IDE's log file)";
} finally {
asciidoctor.unregisterLogHandler(logHandler);
SystemOutputHijacker.deregister();
Expand Down

0 comments on commit 4bcf692

Please sign in to comment.