Kaydet (Commit) cc1d31e0 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

improve an error message in clinic

üst 5c15424a
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment