From f5c8b05a1a82639ac8746183674dcaf019c75050 Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Fri, 20 Jun 2014 23:08:00 -0700 Subject: [PATCH] Filters: don't print misleading error message. Previously pandoc would say that a filter was not found, even in a case where the filter had a syntax error. --- pandoc.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandoc.hs b/pandoc.hs index 0a8070d7c..60ea3cb03 100644 --- a/pandoc.hs +++ b/pandoc.hs @@ -121,10 +121,7 @@ externalFilter f args' d = do ExitFailure _ -> err 83 $ "Error running filter " ++ f where filterException :: E.SomeException -> IO a filterException e = err 83 $ "Error running filter " ++ f ++ "\n" ++ - if ioeGetErrorType `fmap` E.fromException e == - Just ResourceVanished - then f ++ " not found in path" - else show e + show e -- | Data structure for command line options. data Opt = Opt