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: Better Error message for error downloading plugin #323

Merged
merged 2 commits into from
May 23, 2024

Conversation

bbernays
Copy link
Contributor

Summary

This PR enables users to better understand which plugin is failing

@bbernays bbernays requested a review from a team as a code owner May 22, 2024 22:08
@bbernays bbernays requested review from maaarcelino and erezrokah and removed request for a team May 22, 2024 22:08
@github-actions github-actions bot added the fix label May 22, 2024
@@ -27,13 +27,13 @@ func getHubClient(logger zerolog.Logger, ops HubDownloadOptions) (*cloudquery_ap
func isDockerPlugin(ctx context.Context, c *cloudquery_api.ClientWithResponses, ops HubDownloadOptions) (bool, error) {
p, err := c.GetPluginVersionWithResponse(ctx, ops.PluginTeam, cloudquery_api.PluginKind(ops.PluginKind), ops.PluginName, ops.PluginVersion)
if err != nil {
return false, fmt.Errorf("failed to get plugin information: %w", err)
return false, fmt.Errorf("failed to get %s plugin (name: %s/%s) information: %w", cloudquery_api.PluginKind(ops.PluginKind), ops.PluginTeam, ops.PluginName, err)
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to add the version too? Maybe failed to get source plugin cloudquery/[email protected]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in f799d1a

@bbernays bbernays added the automerge Add to automerge PRs once requirements are met label May 23, 2024
@kodiakhq kodiakhq bot merged commit 7f99e76 into main May 23, 2024
7 checks passed
@kodiakhq kodiakhq bot deleted the better-404-error branch May 23, 2024 13:12
kodiakhq bot pushed a commit that referenced this pull request May 23, 2024
🤖 I have created a release *beep* *boop*
---


## [1.19.16](v1.19.15...v1.19.16) (2024-05-23)


### Bug Fixes

* Better Error message for error downloading plugin ([#323](#323)) ([7f99e76](7f99e76))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit that referenced this pull request May 24, 2024
#### Summary

Follow up to #323, @bbernays let me know if I missed anything with this
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants