Skip to content

Commit 7d92a17

Browse files
authored
Merge pull request #71 from rubensousa/log
Mention baseline task in log of check failure
2 parents d9a7043 + c3f303b commit 7d92a17

File tree

1 file changed

+3
-2
lines changed
  • projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/task

1 file changed

+3
-2
lines changed

projectguard/src/main/kotlin/com/rubensousa/projectguard/plugin/internal/task/TaskCheck.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ internal class CheckExecutor(
113113
htmlReportGenerator.generate(report, reportDir)
114114
if (fatalMatches.isNotEmpty()) {
115115
throw VerificationException(
116-
"${fatalMatches.take(10).joinToString("\n\n") { it.getDescription() }} \n " +
117-
"Found ${fatalMatches.size} fatal match(es). See full report at file:///$reportFilePath"
116+
"${fatalMatches.take(10).joinToString("\n\n") { it.getDescription() }} \n\n " +
117+
"Found ${fatalMatches.size} fatal match(es). See full report at file:///$reportFilePath\n\n" +
118+
"Consider updating the baseline with the task projectGuardBaseline if these matches are acceptable."
118119
)
119120
} else {
120121
println("No fatal matches found. See report at file:///$reportFilePath")

0 commit comments

Comments
 (0)