Skip to content

Commit

Permalink
Merge pull request #157 from gradle-nexus/szpak/repoInNotDesiredState…
Browse files Browse the repository at this point in the history
…BetterMessage

[#155] Mention common reason of "not in desired state" error
  • Loading branch information
szpak committed Feb 13, 2023
2 parents b2cbdb3 + 995a9fa commit 0dda1d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class StagingRepositoryTransitioner(val nexusClient: NexusClient, val retrier: A
if (repository.state !in desiredStates) {
throw RepositoryTransitionException(
"Staging repository is not in desired state ${desiredStates.contentToString()}: $repository. It is unexpected. Please check " +
"Nexus logs using its web interface - it can be caused by validation rules violation. If not, please report it " +
"to https://github.com/gradle-nexus/publish-plugin/issues/ with '--info' logs"
"the Nexus logs using its web interface - it can be caused by validation rules violation (e.g. publishing artifacts with the " +
"same version again). If not, please report it to https://github.com/gradle-nexus/publish-plugin/issues/ with the '--info' logs."
)
}
}
Expand Down

0 comments on commit 0dda1d5

Please sign in to comment.