diff --git a/cli/telemetry/errors.go b/cli/telemetry/errors.go index 8577acfa1..392574d17 100644 --- a/cli/telemetry/errors.go +++ b/cli/telemetry/errors.go @@ -2,7 +2,9 @@ package telemetry // classifyCmdErr maps errors to fixed strings to avoid leaking sensitive data inside error messages. func classifyCmdErr(e error) string { - _ = e + if e == nil { + return "" + } switch { default: return "unknown error"