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.
This commit is contained in:
John MacFarlane 2014-06-20 23:08:00 -07:00
parent 793bfc81fe
commit f5c8b05a1a

View file

@ -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