aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-06-20 23:08:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-06-20 23:08:00 -0700
commitf5c8b05a1a82639ac8746183674dcaf019c75050 (patch)
treee5b93ebd71b1e2a8bfcf6832164fdca3b2d5331b
parent793bfc81fe5cb35efa4e0a718d3a82a67a99aeeb (diff)
downloadpandoc-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.hs5
1 files changed, 1 insertions, 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