From c57ad9e46cdad1c7886998a9d7b5b6a7b45f570e Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Sat, 29 Oct 2022 01:58:55 +0200 Subject: [PATCH] Improve comment (#706) Co-authored-by: Casper da Costa-Luis --- iterative/utils/analytics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iterative/utils/analytics.go b/iterative/utils/analytics.go index 476fa1aa..37fad638 100644 --- a/iterative/utils/analytics.go +++ b/iterative/utils/analytics.go @@ -349,7 +349,7 @@ func JitsuEventPayload(action string, e error, extra map[string]interface{}) (ma } if e != nil { - // Get the type of the error as a string, but not the error message itself, because it can be sensitive. + // Only use error type (not message) to avoid potentially sensitive information payload["error"] = reflect.TypeOf(e).String() }