Commit 072d358f authored by Rusty Russell's avatar Rusty Russell

ccanlint: always print \n at end of error message.

Brad Hards fixed a two places where score->error was not \n-terminated,
and then I found a few more, so make it automatic.
parent c6c77939
......@@ -149,8 +149,10 @@ static bool run_test(struct ccanlint *i,
}
if ((!quiet && !score->pass) || verbose) {
if (score->error)
printf("%s", score->error);
if (score->error) {
printf("%s%s", score->error,
strends(score->error, "\n") ? "" : "\n");
}
if (!quiet && !score->pass && i->handle)
i->handle(m, score);
}
......
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