Skip to content

Commit

Permalink
Improve: Error message on failed AST check
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Oct 24, 2024
1 parent 8ddd9b0 commit ddf77ab
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/mdformat/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ def run(cli_args: Sequence[str]) -> int: # noqa: C901
print_error(
f'Could not format "{path_str}".',
paragraphs=[
"The formatted Markdown renders to different HTML than the input Markdown. " # noqa: E501
"This is likely a bug in mdformat. "
"Please create an issue report here, including the input Markdown: " # noqa: E501
"https://github.com/executablebooks/mdformat/issues",
"Formatted Markdown renders to different HTML than input Markdown. " # noqa: E501
"This is a bug in mdformat or one of its installed plugins. "
"Please retry without any plugins installed. "
"If this error persists, "
"report an issue including the input Markdown "
"on https://github.com/executablebooks/mdformat/issues. "
"If not, "
"report an issue on the malfunctioning plugin's issue tracker.",
],
)
return 1
Expand Down

0 comments on commit ddf77ab

Please sign in to comment.