aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Odt.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/Odt.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/Odt.hs')
-rw-r--r--src/Text/Pandoc/Readers/Odt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Odt.hs b/src/Text/Pandoc/Readers/Odt.hs
index 9c8e76081..ac22f2c09 100644
--- a/src/Text/Pandoc/Readers/Odt.hs
+++ b/src/Text/Pandoc/Readers/Odt.hs
@@ -64,7 +64,7 @@ readOdt opts bytes = case readOdt' opts bytes of
Right (doc, mb) -> do
P.setMediaBag mb
return doc
- Left _ -> throwError $ PandocParseError "couldn't parse odt"
+ Left e -> throwError e
--
readOdt' :: ReaderOptions