aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-12-02 08:15:10 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:40 +0100
commit650fa2078890462f39be8fb294031bb706dbb5a0 (patch)
treece03683c4b4276281f321efdc82010695a05fe04 /src/Text/Pandoc/Readers/LaTeX.hs
parent9d69c51527bd9763a36e52b1995ddc9f79896f58 (diff)
downloadpandoc-650fa2078890462f39be8fb294031bb706dbb5a0.tar.gz
Readers: pass errors straight up to PandocMonad.
Since we've unified error types, we can just throw the same error at the toplevel.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 882777c0e..425e905f8 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -68,7 +68,7 @@ readLaTeX opts ltx = do
parsed <- readWithM parseLaTeX def{ stateOptions = opts } ltx
case parsed of
Right result -> return result
- Left _ -> throwError $ PandocParseError "parsing error"
+ Left e -> throwError e
parseLaTeX :: PandocMonad m => LP m Pandoc
parseLaTeX = do