Skip to content

Commit

Permalink
cli: nil error results in empty error string
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweisse committed Apr 16, 2024
1 parent b65717c commit 8dbb867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/telemetry/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8dbb867

Please sign in to comment.