Skip to content

Conversation

A-440Hz
Copy link
Contributor

@A-440Hz A-440Hz commented Mar 12, 2022

No description provided.

@A-440Hz A-440Hz requested a review from talanknight March 12, 2022 00:35
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@talanknight talanknight left a comment

Choose a reason for hiding this comment

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

This looks like it is moving our errors for plugins in a good direction.

Could you also provide in the PR a before/after example of what aws/azure invalid arguments error looks like? This can show us what state we have arrived at in terms of readability of the errors and help us evaluate if we should continue or pause on our path towards more readable errors for plugins.

@@ -122,7 +122,14 @@ func (r *Repository) CreateCatalog(ctx context.Context, c *HostCatalog, _ ...Opt
if !pluginCalledSuccessfully {
plgResp, err = plgClient.OnCreateCatalog(ctx, &plgpb.OnCreateCatalogRequest{Catalog: plgHc})
if err != nil {
if status.Code(err) != codes.Unimplemented {
switch {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add tests to verify these behave as expected? For the changes in this file and the repository_host_set file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants