Skip to content

Commit

Permalink
Add newline in error message to improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
emfdavid committed Jan 20, 2022
1 parent 28c9ffa commit ec3029a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/__init__.py
Expand Up @@ -1315,7 +1315,7 @@ def assert_equivalent(src: str, dst: str, *, pass_num: int = 1) -> None:
src_ast = parse_ast(src)
except Exception as exc:
raise AssertionError(
f"cannot use --safe with this file; failed to parse source file AST: {exc}"
f"cannot use --safe with this file; failed to parse source AST: {exc}\n"
f"This could be caused by running black with an older python version "
f"that does not support new syntax used in your source file."
) from exc
Expand Down

0 comments on commit ec3029a

Please sign in to comment.