Commit dfecdec7 authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix compilation of chained examples.

Broken in 5378c864: we were trying to
recompile the previous failed version.  And the message we printed out
was unclear.
parent 776d7400
......@@ -473,7 +473,7 @@ static void *build_examples(struct manifest *m, bool keep,
char **new = combine(i, get_ccan_file_lines(i), prev);
mangle2 = mangle_example(m, i, new, keep);
ret2 = compile(i, m, mangle1, keep);
ret2 = compile(i, m, mangle2, keep);
if (!ret2) {
prev = new;
score->score++;
......@@ -498,9 +498,9 @@ static void *build_examples(struct manifest *m, bool keep,
if (mangle2) {
score->errors = talloc_asprintf_append(score->errors,
"%s\n"
"%s: tried combining with"
" previous example:\n"
"%s\n"
"Errors: %s\n\n",
i->name,
get_ccan_file_contents(mangle2),
......
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