[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#922418: pandoc: Please reference texlive-latex-base package in the "install pdflatex" error message



Source: pandoc
Version: 2.2.1-3
Severity: minor
Tags: patch

Hi,

  % pandoc -o output.pdf input.md
  pdflatex not found. Please select a different --pdf-engine or install pdflatex

I think this could be improved user-interface wise as pdflatex is
in the "texlive-latex-base" package (and not a hypothetical "pdflatex"
package).

A patch is attached that turns this into:

  % pandoc -o output.pdf input.md
  pdflatex not found. Please select a different --pdf-engine or install pdflatex from the texlive-latex-base package


Best wishes,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org 🍥 chris-lamb.co.uk
       `-
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs
index feb047f..73885ff 100644
--- a/src/Text/Pandoc/Error.hs
+++ b/src/Text/Pandoc/Error.hs
@@ -103,7 +103,7 @@ handleError (Left e) =
     PandocSyntaxMapError s -> err 67 s
     PandocFailOnWarningError -> err 3 "Failing because there were warnings."
     PandocPDFProgramNotFoundError pdfprog -> err 47 $
-        pdfprog ++ " not found. Please select a different --pdf-engine or install " ++ pdfprog
+        pdfprog ++ " not found. Please select a different --pdf-engine or install " ++ pdfprog ++ " from the texlive-latex-base package"
     PandocPDFError logmsg -> err 43 $ "Error producing PDF.\n" ++ logmsg
     PandocFilterError filtername msg -> err 83 $ "Error running filter " ++
         filtername ++ ":\n" ++ msg

Reply to: