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: incorrect log #287

Merged
merged 1 commit into from
Apr 24, 2024
Merged

fix: incorrect log #287

merged 1 commit into from
Apr 24, 2024

Conversation

ComradeVanti
Copy link
Collaborator

The error log for when a package version could not be found is currently incorrect.

When adding package com.some.package@2.0.0 and the primary registry has the package, just not that version the app will still fail with "not found". This is because com.some.package does not exist at all in the upstream registry and that error overrides the first "version not found".

Fixed by checking which error is more fixable and printing that. A missing version is more fixable than the package not existing at all.

The error log for when a package version could not be found is currently incorrect.

When adding package `com.some.package@2.0.0` and the primary registry has the package, just not that version the app will still fail with "not found". This is because `com.some.package` does not exist at all in the upstream registry and that error overrides the first "version not found".

Fixed by checking which error  is more fixable and printing that. A missing version is more fixable than the package not existing at all.
@ComradeVanti ComradeVanti merged commit 320fb36 into master Apr 24, 2024
2 checks passed
@ComradeVanti ComradeVanti deleted the fix-log-swallow branch April 24, 2024 17:03
@ComradeVanti ComradeVanti restored the fix-log-swallow branch April 24, 2024 17:03
@ComradeVanti ComradeVanti deleted the fix-log-swallow branch April 24, 2024 17:04
github-actions bot pushed a commit that referenced this pull request Apr 24, 2024
## [1.23.2](1.23.1...1.23.2) (2024-04-24)

### Bug Fixes

* incorrect log ([#287](#287)) ([320fb36](320fb36))
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

1 participant