From 5bce86ed84d34bb21c4db5a80838812771772a3d 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) } }