From d82554f00e0f7b8914c573d0525dc80772ff9fa1 Mon Sep 17 00:00:00 2001 From: Santiago Zarate Date: Mon, 23 Dec 2024 15:10:42 +0100 Subject: [PATCH] Improve message for asciidoc input error #8416 --- src/Text/Pandoc/Error.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index 373871ceba6b..acc136c431c0 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -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 <>