Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Jul 15, 2021
1 parent e32fde0 commit ccd8264
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/grpc/services/gateway/appregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (s *svc) GetAppProviders(ctx context.Context, req *registry.GetAppProviders
if err != nil {
err = errors.Wrap(err, "gateway: error calling GetAppRegistryClient")
return &registry.GetAppProvidersResponse{
Status: status.NewInternal(ctx, err, "error getting user share provider client"),
Status: status.NewInternal(ctx, err, "error getting app registry client"),
}, nil
}

Expand All @@ -49,7 +49,7 @@ func (s *svc) AddAppProvider(ctx context.Context, req *registry.AddAppProviderRe
if err != nil {
err = errors.Wrap(err, "gateway: error calling GetAppRegistryClient")
return &registry.AddAppProviderResponse{
Status: status.NewInternal(ctx, err, "error getting user share provider client"),
Status: status.NewInternal(ctx, err, "error getting app registry client"),
}, nil
}

Expand All @@ -66,7 +66,7 @@ func (s *svc) ListAppProviders(ctx context.Context, req *registry.ListAppProvide
if err != nil {
err = errors.Wrap(err, "gateway: error calling GetAppRegistryClient")
return &registry.ListAppProvidersResponse{
Status: status.NewInternal(ctx, err, "error getting user share provider client"),
Status: status.NewInternal(ctx, err, "error getting app registry client"),
}, nil
}

Expand All @@ -83,7 +83,7 @@ func (s *svc) GetDefaultAppProviderForMimeType(ctx context.Context, req *registr
if err != nil {
err = errors.Wrap(err, "gateway: error calling GetAppRegistryClient")
return &registry.GetDefaultAppProviderForMimeTypeResponse{
Status: status.NewInternal(ctx, err, "error getting user share provider client"),
Status: status.NewInternal(ctx, err, "error getting app registry client"),
}, nil
}

Expand All @@ -100,7 +100,7 @@ func (s *svc) SetDefaultAppProviderForMimeType(ctx context.Context, req *registr
if err != nil {
err = errors.Wrap(err, "gateway: error calling GetAppRegistryClient")
return &registry.SetDefaultAppProviderForMimeTypeResponse{
Status: status.NewInternal(ctx, err, "error getting user share provider client"),
Status: status.NewInternal(ctx, err, "error getting app registry client"),
}, nil
}

Expand Down

0 comments on commit ccd8264

Please sign in to comment.