diff --git a/tools/hubl/internal/compat.go b/tools/hubl/internal/compat.go index b67e7adfd8ba..736ff1f1414f 100644 --- a/tools/hubl/internal/compat.go +++ b/tools/hubl/internal/compat.go @@ -59,7 +59,7 @@ func loadFileDescriptorsGRPCReflection(ctx context.Context, client *grpc.ClientC switch res := in.MessageResponse.(type) { case *grpc_reflection_v1alpha.ServerReflectionResponse_ErrorResponse: - panic(err) + panic(res.ErrorResponse.String()) //nolint:staticcheck // we want to use the deprecated field case *grpc_reflection_v1alpha.ServerReflectionResponse_ListServicesResponse: waitListServiceRes <- res.ListServicesResponse //nolint:staticcheck // we want to use the deprecated field case *grpc_reflection_v1alpha.ServerReflectionResponse_FileDescriptorResponse: