diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-12-02 08:15:10 -0500 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:40 +0100 |
commit | 650fa2078890462f39be8fb294031bb706dbb5a0 (patch) | |
tree | ce03683c4b4276281f321efdc82010695a05fe04 /src/Text/Pandoc/Readers/Odt.hs | |
parent | 9d69c51527bd9763a36e52b1995ddc9f79896f58 (diff) | |
download | pandoc-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.hs | 2 |
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 |