From dd4110fb09aa676cb03ed9cec52b21f9e7e46a3f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 13 Apr 2017 16:49:44 +0200 Subject: Revised error message for pandoc -t pdf. --- src/Text/Pandoc/App.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 107ca435f..619c692a0 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -178,10 +178,10 @@ convertWithOpts opts = do Left e -> E.throwIO $ PandocAppError 9 $ if format == "pdf" then e ++ - "\nTo create a pdf with pandoc, use " ++ - "the latex or beamer writer and specify\n" ++ - "an output file with .pdf extension " ++ - "(pandoc -t latex -o filename.pdf)." + "\nTo create a pdf using pandoc, use " ++ + "-t latex|beamer|context|ms|html5" ++ + "\nand specify an output file with " ++ + ".pdf extension (-o filename.pdf)." ++ else e Right w -> return (w :: Writer PandocIO) -- cgit v1.2.3