Adjust the missing taplo message (#30473)

The current message doesn't have a line break where you would expect it
to and instead has a gap due to the indentation of the code in Python.
This commit is contained in:
Martin Robinson 2023-10-03 12:23:02 +02:00 committed by GitHub
parent f5d40a473b
commit f78d53daaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,9 +60,7 @@ TEST_SUITES_BY_PREFIX = {path: k for k, v in TEST_SUITES.items() if "paths" in v
def format_toml_files_with_taplo(check_only: bool = True) -> int:
taplo = shutil.which("taplo")
if taplo is None:
print("Taplo is not installed.")
print("It should be installed using `./mach bootstrap`, \
but it can be installed manually using `cargo install taplo-cli --locked`")
print("Could not find `taplo`. Run `./mach bootstrap` or `cargo install taplo-cli --locked`")
return 1
if check_only: