From 72af7b4ee5802be3a08566be06acd3d1fa92a51f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 24 Feb 2017 14:29:56 +0100 Subject: Shared: remove 'warn'. PDF writer: Use 'report' instead of 'warn', make it sensitive to verbosity settings. --- src/Text/Pandoc/Class.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/Text/Pandoc/Class.hs') diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs index 432a607db..b053e9063 100644 --- a/src/Text/Pandoc/Class.hs +++ b/src/Text/Pandoc/Class.hs @@ -324,10 +324,7 @@ withPaths :: PandocMonad m => [FilePath] -> (FilePath -> m a) -> FilePath -> m a withPaths [] _ fp = throwError $ PandocIOError fp (userError "file not found in resource path") withPaths (p:ps) action fp = - catchError (do res <- action (p fp) - when (p /= ".") $ - report $ UsingResourceFrom fp p - return res) + catchError (action (p fp)) (\_ -> withPaths ps action fp) data PureState = PureState { stStdGen :: StdGen -- cgit v1.2.3