aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordespresc <[email protected]>2019-11-11 11:21:59 -0500
committerdespresc <[email protected]>2019-11-11 11:21:59 -0500
commit9d3a575dbf3e8db83e5911a9185e22f9f0805df8 (patch)
tree10597dd06344e2f29c29dbbb562261ca3398caf9
parent20f08e1809615713b859396d9935421b3f443d5f (diff)
Fix build with -embed_data_files
A function that presumed an internal String representation was hidden if the flag was set to true.
-rw-r--r--src/Text/Pandoc/Class.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Class.hs b/src/Text/Pandoc/Class.hs
index 2f79c412a..8449e4a0e 100644
--- a/src/Text/Pandoc/Class.hs
+++ b/src/Text/Pandoc/Class.hs
@@ -783,7 +783,7 @@ checkExistence fn = do
exists <- fileExists fn
if exists
then return fn
- else throwError $ PandocCouldNotFindDataFileError fn
+ else throwError $ PandocCouldNotFindDataFileError $ T.pack fn
#endif
makeCanonical :: FilePath -> FilePath