summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/PDF.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-05-20 23:23:52 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-20 23:24:20 +0200
commitd109c8be8fe97631fa29affed0de6c4d50f56a95 (patch)
treed5cf54ac61749836063d596ad9923fde2fa68a24 /src/Text/Pandoc/PDF.hs
parent753d5811e2d08ac27dd77659e43a6968b7ebd72a (diff)
PDF: better error message for non-converted svg images.
Diffstat (limited to 'src/Text/Pandoc/PDF.hs')
-rw-r--r--src/Text/Pandoc/PDF.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/PDF.hs b/src/Text/Pandoc/PDF.hs
index 822067e78..090bcbc6d 100644
--- a/src/Text/Pandoc/PDF.hs
+++ b/src/Text/Pandoc/PDF.hs
@@ -159,6 +159,7 @@ convertImage tmpdir fname =
Just "image/png" -> doNothing
Just "image/jpeg" -> doNothing
Just "application/pdf" -> doNothing
+ Just "image/svg+xml" -> return $ Left "conversion from svg not supported"
_ -> JP.readImage fname >>= \res ->
case res of
Left e -> return $ Left e