From 262d9668c00b5c70949569a08f1eee758fc13cbd Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 16 Jul 2024 12:22:59 +0200 Subject: [PATCH] chore(cyclonedx): Say for which file extension creation failed Signed-off-by: Sebastian Schuberth --- .../reporters/cyclonedx/src/main/kotlin/CycloneDxReporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reporters/cyclonedx/src/main/kotlin/CycloneDxReporter.kt b/plugins/reporters/cyclonedx/src/main/kotlin/CycloneDxReporter.kt index b17d2238aaf6a..6102553300dda 100644 --- a/plugins/reporters/cyclonedx/src/main/kotlin/CycloneDxReporter.kt +++ b/plugins/reporters/cyclonedx/src/main/kotlin/CycloneDxReporter.kt @@ -376,7 +376,7 @@ class CycloneDxReporter : Reporter { outputFile.bufferedWriter().use { it.write(bom) } writtenFiles += outputFile }.onFailure { - logger.error("Unable to create CycloneDX report: ", it) + logger.error("Unable to create the CycloneDX '$fileExtension' report: ", it) } }