Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error message when no repo is found #337

Merged
merged 2 commits into from May 27, 2022
Merged

Conversation

gabrielittner
Copy link
Collaborator

No description provided.

@@ -38,7 +38,7 @@ internal class Nexus(
val allRepositories = getProfileRepositories() ?: emptyList()

if (allRepositories.isEmpty()) {
throw IllegalArgumentException("No staging repository prefixed with. Make sure you called \"./gradlew publish\".")
throw IllegalArgumentException("No staging repositories found in account ${username}. Make sure you called \"./gradlew publish\".")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also include the username in throw IOException("Cannot get profileRepositories: ${profileRepositoriesResponse.errorBody()?.string()}")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it there and also to the other error messages f793dd3

@gabrielittner gabrielittner merged commit 8e1f12d into master May 27, 2022
@vanniktech vanniktech deleted the gabrielittner-patch-1 branch May 28, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants