Skip to content

Commit

Permalink
plugin: remove invalid chars from error message
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <[email protected]>
  • Loading branch information
drakkan committed Oct 29, 2024
1 parent 10e4843 commit bc31777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (m *Manager) NotifyLogEvent(event notifier.LogEventType, protocol, username
if e == nil {
message := ""
if err != nil {
message = err.Error()
message = strings.Trim(err.Error(), "\x00")
}

e = &notifier.LogEvent{
Expand Down

0 comments on commit bc31777

Please sign in to comment.