From c3f303bb5bb4b53186e761a45307b4d25d2c4202 Mon Sep 17 00:00:00 2001 From: Ruben Sousa Date: Sun, 1 Mar 2026 23:39:55 +0100 Subject: [PATCH] Mention baseline task in log of check failure --- .../projectguard/plugin/internal/task/TaskCheck.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/task/TaskCheck.kt b/projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/task/TaskCheck.kt index 5966648..0262a7a 100644 --- a/projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/task/TaskCheck.kt +++ b/projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/task/TaskCheck.kt @@ -113,8 +113,9 @@ internal class CheckExecutor( htmlReportGenerator.generate(report, reportDir) if (fatalMatches.isNotEmpty()) { throw VerificationException( - "${fatalMatches.take(10).joinToString("\n\n") { it.getDescription() }} \n " + - "Found ${fatalMatches.size} fatal match(es). See full report at file:///$reportFilePath" + "${fatalMatches.take(10).joinToString("\n\n") { it.getDescription() }} \n\n " + + "Found ${fatalMatches.size} fatal match(es). See full report at file:///$reportFilePath\n\n" + + "Consider updating the baseline with the task projectGuardBaseline if these matches are acceptable." ) } else { println("No fatal matches found. See report at file:///$reportFilePath")