aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Error.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Error.hs')
-rw-r--r--src/Text/Pandoc/Error.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs
index 135cb3945..a6db5e047 100644
--- a/src/Text/Pandoc/Error.hs
+++ b/src/Text/Pandoc/Error.hs
@@ -58,6 +58,7 @@ data PandocError = PandocIOError String IOError
| PandocPDFError String
| PandocFilterError String String
| PandocCouldNotFindDataFileError String
+ | PandocResourceNotFound String
| PandocAppError String
deriving (Show, Typeable, Generic)
@@ -94,6 +95,8 @@ handleError (Left e) =
filtername ++ ":\n" ++ msg
PandocCouldNotFindDataFileError fn -> err 97 $
"Could not find data file " ++ fn
+ PandocResourceNotFound fn -> err 99 $
+ "File " ++ fn ++ " not found in resource path"
PandocAppError s -> err 1 s
err :: Int -> String -> IO a