Skip to content

Commit

Permalink
fix: add temporary build value to the valid build check error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalluck committed Jan 20, 2025
1 parent 562bd59 commit b800b10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b800b10

Please sign in to comment.