git.iko.soy/typeable/pandoc
on master help sign in
Org reader: report errors properly

Errors during parsing are now returned in full and no longer replaced by a custom message.

commitb06124e43a9ac82a2cf86697e386f92da7a8c9d8 authorAlbert Krewinkel <albert@zeitkraut.de> dateThu 19 Dec 2019, 20:26 (7 years ago) parent0a3cc72
1 file changed+1−2
src/Text/Pandoc/Readers/Org.hs+1−2
src/Text/Pandoc/Readers/Org.hs+1−2
@@ -18,7 +18,6 @@ import Text.Pandoc.Readers.Org.Parsing (OrgParser, readWithM)
1818
1919import Text.Pandoc.Class (PandocMonad)
2020import Text.Pandoc.Definition
21−import Text.Pandoc.Error
2221import Text.Pandoc.Options
2322import Text.Pandoc.Parsing (reportLogMessages)
2423import Text.Pandoc.Shared (crFilter)
@@ -39,7 +38,7 @@ readOrg opts s = do
3938 (crFilter s <> "\n\n")
4039 case parsed of
4140 Right result -> return result
42− Left _ -> throwError $ PandocParseError "problem parsing org"
41+ Left e -> throwError e
4342
4443--
4544-- Parser