diff --git a/pkg/cmd/get.go b/pkg/cmd/get.go index 3abac36e..f451a06a 100644 --- a/pkg/cmd/get.go +++ b/pkg/cmd/get.go @@ -39,7 +39,7 @@ var ( %[1]s trace get --all-namespaces` argumentsErr = fmt.Sprintf("at most one argument for %s command", getCommand) - missingTargetErr = fmt.Sprintf("specify either a TRACE_ID or a namespace or all namespaces") + missingTargetErr = "specify either a TRACE_ID or a namespace or all namespaces" ) // GetOptions ... diff --git a/pkg/tracejob/selected_target.go b/pkg/tracejob/selected_target.go index 141f61d4..81af8fb1 100644 --- a/pkg/tracejob/selected_target.go +++ b/pkg/tracejob/selected_target.go @@ -117,7 +117,7 @@ func ResolveTraceJobTarget(clientset kubernetes.Interface, resource, container, labels := node.GetLabels() val, ok := labels["kubernetes.io/hostname"] if !ok { - return nil, errors.NewErrorInvalid(fmt.Sprintf("label kubernetes.io/hostname not found in node")) + return nil, errors.NewErrorInvalid("label kubernetes.io/hostname not found in node") } target.Node = val