@@ -112,6 +112,7 @@ getPOSIXTime = utcTimeToPOSIXSeconds <$> getCurrentTime
112112-- We can add to this as we go
113113data PandocExecutionError = PandocFileReadError FilePath
114114 | PandocShouldNeverHappenError String
115+ | PandocParseError String
115116 | PandocSomeError String
116117 deriving (Show, Typeable)
117118
@@ -133,8 +134,9 @@ runIOorExplode ma = do
133134 eitherVal <- runIO ma
134135 case eitherVal of
135136 Right x -> return x
136− Left (PandocFileReadError fp) -> error $ "promple reading " ++ fp
137+ Left (PandocFileReadError fp) -> error $ "problem reading " ++ fp
137138 Left (PandocShouldNeverHappenError s) -> error s
139+ Left (PandocParseError s) -> error $ "parse error" ++ s
138140 Left (PandocSomeError s) -> error s
139141
140142newtype PandocIO a = PandocIO {