diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-06-20 23:08:00 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-06-20 23:08:00 -0700 |
commit | f5c8b05a1a82639ac8746183674dcaf019c75050 (patch) | |
tree | e5b93ebd71b1e2a8bfcf6832164fdca3b2d5331b | |
parent | 793bfc81fe5cb35efa4e0a718d3a82a67a99aeeb (diff) | |
download | pandoc-f5c8b05a1a82639ac8746183674dcaf019c75050.tar.gz |
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.
-rw-r--r-- | pandoc.hs | 5 |
1 files changed, 1 insertions, 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 |