Skip to content

Commit

Permalink
backend: fix error response for schema registry status
Browse files Browse the repository at this point in the history
  • Loading branch information
weeco committed Feb 18, 2025
1 parent b85fdf1 commit 7aeee43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/api/connect/service/clusterstatus/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (s *Service) GetKafkaConnectInfo(ctx context.Context, _ *connect.Request[v1
// fetched, ensuring that errors are properly reflected in the response.
func (s *Service) GetSchemaRegistryInfo(ctx context.Context, _ *connect.Request[v1alpha1.GetSchemaRegistryInfoRequest]) (*connect.Response[v1alpha1.GetSchemaRegistryInfoResponse], error) {
if !s.cfg.SchemaRegistry.Enabled {
return nil, apierrors.NewRedpandaAdminAPINotConfiguredError()
return nil, apierrors.NewSchemaRegistryNotConfiguredError()
}

status := &v1alpha1.ComponentStatus{
Expand Down

0 comments on commit 7aeee43

Please sign in to comment.