Skip to content

Commit

Permalink
Improve comment (#706)
Browse files Browse the repository at this point in the history
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
  • Loading branch information
0x2b3bfa0 and casperdcl committed Oct 28, 2022
1 parent 0446fc7 commit c57ad9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iterative/utils/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit c57ad9e

Please sign in to comment.