Skip to content

Commit 509cc3a

Browse files
committed
T.P.Error: Improve reporting of unsupported extensions errors.
Amend the error message with instructions on how to list all supported extensions. Closes: #9247
1 parent c18fd22 commit 509cc3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Text/Pandoc/Error.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ renderError e =
136136
_ -> ""
137137
PandocUnsupportedExtensionError ext f ->
138138
"The extension " <> ext <> " is not supported " <>
139-
"for " <> f
139+
"for " <> f <> ".\nUse --list-extensions=" <> f <> " to " <>
140+
"list supported extensions."
140141
PandocCiteprocError e' ->
141142
prettyCiteprocError e'
142143
PandocBibliographyError fp msg ->

0 commit comments

Comments
 (0)