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:
parent
793bfc81fe
commit
f5c8b05a1a
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue