From 93dad75a48244e35b67557d63a232d21875c3664 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Feb 2012 13:31:21 -0800 Subject: Don't print warnings for not-found packages, includes. --- src/Text/Pandoc/Readers/LaTeX.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 41f9c40f7..220c35d81 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -536,10 +536,7 @@ handleIncludes :: String -> IO String handleIncludes [] = return [] handleIncludes ('\\':xs) = case runParser include defaultParserState "input" ('\\':xs) of - Right (f, rest) -> do ys <- catch (readFile f) - (\e -> warn - ("could not open included file `" ++ - f ++ "': " ++ show e) >> return "") + Right (f, rest) -> do ys <- catch (readFile f) (\_ -> return "") (ys ++) `fmap` handleIncludes rest _ -> case runParser verbatimEnv defaultParserState "input" ('\\':xs) of Right (r, rest) -> (r ++) `fmap` handleIncludes rest -- cgit v1.2.3