From 28c50dd77f8c7f5d5763b9c10182ba6af9dc4cee Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Wed, 27 Nov 2024 14:57:49 -0800 Subject: [PATCH] Kubernetes benchmarks profiling: Distinguish error messages. PiperOrigin-RevId: 700813812 --- test/kubernetes/benchmarks/profiling/profiling.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/kubernetes/benchmarks/profiling/profiling.go b/test/kubernetes/benchmarks/profiling/profiling.go index 0a33e2b9e..404120dfc 100644 --- a/test/kubernetes/benchmarks/profiling/profiling.go +++ b/test/kubernetes/benchmarks/profiling/profiling.go @@ -357,10 +357,10 @@ func MaybeSetup(ctx context.Context, t *testing.T, k8sCtx k8sctx.KubernetesConte defer setupCancel() ds, err := startOperations(setupCtx, k8sCtx, c, ns, setupCommands) if err != nil { - return nil, err + return nil, fmt.Errorf("failed to start profiling setup operations: %w", err) } if err := c.WaitForDaemonset(setupCtx, ds); err != nil { - return nil, err + return nil, fmt.Errorf("failed to wait for daemonset: %w", err) } } return cleanup, nil