diff --git a/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/command/AbstractGenerateCommand.java b/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/command/AbstractGenerateCommand.java index d6952f1a5..3a5a152e9 100644 --- a/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/command/AbstractGenerateCommand.java +++ b/cli/src/main/java/org/jboss/sbomer/cli/feature/sbom/command/AbstractGenerateCommand.java @@ -138,8 +138,9 @@ public Integer call() throws Exception { // Filter only valid PNC builds if (!isValidBuild(build)) { throw new InvalidPncBuildStateException( - "Build '{}' is not valid! Progress needs to be 'FINISHED' with status 'SUCCESS' or 'NO_REBUILD_REQUIRED'. Currently: progress: '{}', status: '{}'", + "Build '{}' is not valid! Build cannot be temporary and progress needs to be 'FINISHED' with status 'SUCCESS' or 'NO_REBUILD_REQUIRED'. Currently: temporary: {}, progress: '{}', status: '{}'", parent.getBuildId(), + build.getTemporaryBuild(), build.getProgress(), build.getStatus()); } diff --git a/core/src/main/java/org/jboss/sbomer/core/features/sbom/utils/SbomUtils.java b/core/src/main/java/org/jboss/sbomer/core/features/sbom/utils/SbomUtils.java index dabcdacb6..5f38d3ab7 100644 --- a/core/src/main/java/org/jboss/sbomer/core/features/sbom/utils/SbomUtils.java +++ b/core/src/main/java/org/jboss/sbomer/core/features/sbom/utils/SbomUtils.java @@ -175,7 +175,9 @@ private static void setCoordinates(Component component, Artifact artifact) { } else if (scopeName.length == 1) { component.setName(scopeName[0]); } else { - log.warn("Unexpected number of slashes in NPM artifact name {}, using it fully", coordinates.getName()); + log.warn( + "Unexpected number of slashes in NPM artifact name {}, using it fully", + coordinates.getName()); component.setName(coordinates.getName()); } component.setVersion(coordinates.getVersionString());