Skip to content

Commit

Permalink
Improve message for asciidoc input error jgm#8416
Browse files Browse the repository at this point in the history
  • Loading branch information
foursixnine committed Dec 23, 2024
1 parent 26ad26b commit d82554f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Text/Pandoc/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ renderError e =
"\nTry using Word to save your DOC file as DOCX," <>
" and convert that with pandoc."
"pdf" -> "\nPandoc can convert to PDF, but not from PDF."
"asciidoc" -> "\nPandoc can convert to asciidoc, but not from " <>
"\n asciidoc (sometimes adoc also)."
_ -> ""
PandocUnknownWriterError w ->
"Unknown output format " <> w <>
Expand Down

0 comments on commit d82554f

Please sign in to comment.