Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc1d31e

Browse files
committed
improve an error message in clinic
1 parent 5c15424 commit cc1d31e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Tools/clinic/clinic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,10 @@ def is_stop_line(line):
970970
if self.verify:
971971
computed = compute_checksum(output)
972972
if checksum != computed:
973-
fail("Checksum mismatch!\nExpected: {}\nComputed: {}".format(checksum, computed))
973+
fail("Checksum mismatch!\nExpected: {}\nComputed: {}\n"
974+
"Suggested fix: remove all generated code including "
975+
"the end marker, or use the '-f' option."
976+
.format(checksum, computed))
974977
else:
975978
# put back output
976979
output_lines = output.splitlines(keepends=True)

0 commit comments

Comments
 (0)