Index: presubmit_canned_checks.py |
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
index 4f0472be1d3bdf66a43229016e0317744d5dc06a..6dfed2bf697fe0c409ede1024dff026848041e10 100644 |
--- a/presubmit_canned_checks.py |
+++ b/presubmit_canned_checks.py |
@@ -1106,7 +1106,8 @@ def CheckPatchFormatted(input_api, output_api): |
code, _ = git_cl.RunGitWithCode(cmd, suppress_stderr=True) |
if code == 2: |
return [output_api.PresubmitPromptWarning( |
- 'Your patch is not formatted, please run git cl format.')] |
+ 'The %s directory requires clang-formatting. ' |
+ 'Please run git cl format %s' % (input_api.basename, input_api.basename))] |
# As this is just a warning, ignore all other errors if the user |
# happens to have a broken clang-format, doesn't use git, etc etc. |
return [] |