Org reader: report errors properly
Errors during parsing are now returned in full and no longer replaced by a custom message.
This commit is contained in:
parent
0a3cc7260c
commit
b06124e43a
1 changed files with 1 additions and 2 deletions
|
@ -18,7 +18,6 @@ import Text.Pandoc.Readers.Org.Parsing (OrgParser, readWithM)
|
|||
|
||||
import Text.Pandoc.Class (PandocMonad)
|
||||
import Text.Pandoc.Definition
|
||||
import Text.Pandoc.Error
|
||||
import Text.Pandoc.Options
|
||||
import Text.Pandoc.Parsing (reportLogMessages)
|
||||
import Text.Pandoc.Shared (crFilter)
|
||||
|
@ -39,7 +38,7 @@ readOrg opts s = do
|
|||
(crFilter s <> "\n\n")
|
||||
case parsed of
|
||||
Right result -> return result
|
||||
Left _ -> throwError $ PandocParseError "problem parsing org"
|
||||
Left e -> throwError e
|
||||
|
||||
--
|
||||
-- Parser
|
||||
|
|
Loading…
Add table
Reference in a new issue