From d64f6cb553e5b39ba4f157aff2a9fa50e71ed659 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Fri, 13 Oct 2023 14:57:50 +0100 Subject: [PATCH] start errors with capital letters --- .../engine_functions/create_engine.go | 4 ++-- .../kubernetes/kubernetes_manager/kubernetes_manager.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_kurtosis_backend/engine_functions/create_engine.go b/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_kurtosis_backend/engine_functions/create_engine.go index aa682cce30..fc0e06bb7e 100644 --- a/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_kurtosis_backend/engine_functions/create_engine.go +++ b/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_kurtosis_backend/engine_functions/create_engine.go @@ -44,10 +44,10 @@ func CreateEngine( ) { hasNodes, err := kubernetesManager.HasComputeNodes(ctx) if err != nil { - return nil, stacktrace.Propagate(err, "an error occurred while verifying whether the Kubernetes cluster has any compute nodes") + return nil, stacktrace.Propagate(err, "An error occurred while verifying whether the Kubernetes cluster has any compute nodes") } if !hasNodes { - return nil, stacktrace.NewError("can't start engine on the Kubernetes cluster as it has no compute nodes") + return nil, stacktrace.NewError("Can't start engine on the Kubernetes cluster as it has no compute nodes") } engineGuidStr, err := uuid_generator.GenerateUUIDString() diff --git a/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_manager/kubernetes_manager.go b/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_manager/kubernetes_manager.go index 7b0fdace35..57b0b9ec57 100644 --- a/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_manager/kubernetes_manager.go +++ b/container-engine-lib/lib/backend_impls/kubernetes/kubernetes_manager/kubernetes_manager.go @@ -1732,7 +1732,7 @@ func (manager *KubernetesManager) GetExecStream(ctx context.Context, pod *apiv1. func (manager *KubernetesManager) HasComputeNodes(ctx context.Context) (bool, error) { nodes, err := manager.kubernetesClientSet.CoreV1().Nodes().List(ctx, metav1.ListOptions{}) if err != nil { - return false, stacktrace.Propagate(err, "an error occurred while checking if the Kubernetes cluster has any nodes") + return false, stacktrace.Propagate(err, "An error occurred while checking if the Kubernetes cluster has any nodes") } return len(nodes.Items) != 0, nil }