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 1212ad1 commit db49400
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

// Map 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 db49400

Please sign in to comment.