aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2018-11-07 20:07:06 +0100
committerPyfisch <pyfisch@gmail.com>2018-11-07 20:32:22 +0100
commit694991ad7e74dcbe42544c049d834e4d664b353f (patch)
treed21fec0b289cc187c2c43a7fa02f804de9a6d333
parentb93d4b2ac6a24f1d377b4cb3393f79e0e877c642 (diff)
downloadservo-694991ad7e74dcbe42544c049d834e4d664b353f.tar.gz
servo-694991ad7e74dcbe42544c049d834e4d664b353f.zip
Hint ./mach fmt
-rw-r--r--python/servo/testing_commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 1a4f24716e1..bd0271765f1 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -331,6 +331,8 @@ class MachCommands(CommandBase):
tidy_failed = tidy.scan(not all_files, not no_progress, stylo=stylo)
self.install_rustfmt()
rustfmt_failed = self.call_rustup_run(["cargo", "fmt", "--", "--check"])
+ if rustfmt_failed:
+ print("Run `./mach fmt` to fix the formatting")
return tidy_failed or manifest_dirty or rustfmt_failed
@Command('test-webidl',