Skip to content

Commit c57ad9e

Browse files
0x2b3bfa0casperdcl
andauthored
Improve comment (#706)
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
1 parent 0446fc7 commit c57ad9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterative/utils/analytics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func JitsuEventPayload(action string, e error, extra map[string]interface{}) (ma
349349
}
350350

351351
if e != nil {
352-
// Get the type of the error as a string, but not the error message itself, because it can be sensitive.
352+
// Only use error type (not message) to avoid potentially sensitive information
353353
payload["error"] = reflect.TypeOf(e).String()
354354
}
355355

0 commit comments

Comments
 (0)