summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-01-14 19:52:01 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-01-14 19:52:01 (GMT)
commitcc1d31e09edf797371f4beef185574882e59e2f9 (patch)
tree34804a417a714cb637bff98e1e26a41a24304f99 /Tools/clinic
parent5c15424aa96acce4f136b74a7bd2afaafa9d9651 (diff)
downloadcpython-cc1d31e09edf797371f4beef185574882e59e2f9.zip
cpython-cc1d31e09edf797371f4beef185574882e59e2f9.tar.gz
cpython-cc1d31e09edf797371f4beef185574882e59e2f9.tar.bz2
improve an error message in clinic
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 86df329..3d4feaf 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -970,7 +970,10 @@ class BlockParser:
if self.verify:
computed = compute_checksum(output)
if checksum != computed:
- fail("Checksum mismatch!\nExpected: {}\nComputed: {}".format(checksum, computed))
+ fail("Checksum mismatch!\nExpected: {}\nComputed: {}\n"
+ "Suggested fix: remove all generated code including "
+ "the end marker, or use the '-f' option."
+ .format(checksum, computed))
else:
# put back output
output_lines = output.splitlines(keepends=True)