X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_compile.c;h=5aeabed38cbb7f8ec59664c0fd4bf0912081e3a9;hp=ae0d16d62a8cedd81a5542f88c55dd2c98d71e6c;hb=79c5dd6d4568c796fc3a0260092b0e82ca23261d;hpb=9cca4b73c96adeb39ab89027eca9ea5323a3a598 diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index ae0d16d6..5aeabed3 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -529,7 +529,14 @@ static void build_examples(struct manifest *m, bool keep, warnings = true; score->error = "Compiling extracted example" " gave warnings"; - score_file_error(score, file[j], 0, err[j]); + error = talloc_asprintf(score, + "Example:\n" + "%s\n" + "Compiler:\n" + "%s", + get_ccan_file_contents(file[j]), + err[j]); + score_file_error(score, file[j], 0, error); goto next; } }