Skip to content

Commit

Permalink
T.P.Error: Improve reporting of unsupported extensions errors.
Browse files Browse the repository at this point in the history
Amend the error message with instructions on how to list all supported
extensions.

Closes: #9247
  • Loading branch information
tarleb committed Apr 30, 2024
1 parent c18fd22 commit 509cc3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Text/Pandoc/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ renderError e =
_ -> ""
PandocUnsupportedExtensionError ext f ->
"The extension " <> ext <> " is not supported " <>
"for " <> f
"for " <> f <> ".\nUse --list-extensions=" <> f <> " to " <>
"list supported extensions."
PandocCiteprocError e' ->
prettyCiteprocError e'
PandocBibliographyError fp msg ->
Expand Down

0 comments on commit 509cc3a

Please sign in to comment.