diff options
author | Emily Bourke <undergroundquizscene@protonmail.com> | 2021-08-10 17:19:20 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-17 09:35:25 -0700 |
commit | 88d82203a188415e02a5964b9030f970f1c67aaf (patch) | |
tree | a4ea2f744a168f851a81f0309a4ebd4d7b4e674e /src | |
parent | 415f445fc136f5832a6e2512833c2ff6a3e89038 (diff) | |
download | pandoc-88d82203a188415e02a5964b9030f970f1c67aaf.tar.gz |
Add TemplateWarning log message type [API change]
This is a general warning to use for messages about templates.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Logging.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Logging.hs b/src/Text/Pandoc/Logging.hs index 193b8b61c..a5c227770 100644 --- a/src/Text/Pandoc/Logging.hs +++ b/src/Text/Pandoc/Logging.hs @@ -76,6 +76,7 @@ data LogMessage = | InlineNotRendered Inline | BlockNotRendered Block | DocxParserWarning Text + | TemplateWarning Text | IgnoredIOError Text | CouldNotFetchResource Text Text | CouldNotDetermineImageSize Text Text @@ -174,6 +175,8 @@ instance ToJSON LogMessage where ["contents" .= toJSON bl] DocxParserWarning s -> ["contents" .= s] + TemplateWarning s -> + ["contents" .= s] IgnoredIOError s -> ["contents" .= s] CouldNotFetchResource fp s -> @@ -291,6 +294,8 @@ showLogMessage msg = "Not rendering " <> Text.pack (show bl) DocxParserWarning s -> "Docx parser warning: " <> s + TemplateWarning s -> + "Pptx parser warning: " <> s IgnoredIOError s -> "IO Error (ignored): " <> s CouldNotFetchResource fp s -> @@ -386,6 +391,7 @@ messageVerbosity msg = InlineNotRendered{} -> INFO BlockNotRendered{} -> INFO DocxParserWarning{} -> INFO + TemplateWarning{} -> WARNING IgnoredIOError{} -> WARNING CouldNotFetchResource{} -> WARNING CouldNotDetermineImageSize{} -> WARNING |