mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
plugin: remove invalid chars from error message
Some checks failed
CI / Test and deploy (push) Has been cancelled
Docker / Build (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Has been cancelled
CI / Test build flags (push) Has been cancelled
CI / Test with PgSQL/MySQL/Cockroach (push) Has been cancelled
CI / Build Linux packages (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Some checks failed
CI / Test and deploy (push) Has been cancelled
Docker / Build (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Has been cancelled
CI / Test build flags (push) Has been cancelled
CI / Test with PgSQL/MySQL/Cockroach (push) Has been cancelled
CI / Build Linux packages (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
9ae0bc4ec4
commit
beff4432dc
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ func (m *Manager) NotifyLogEvent(event notifier.LogEventType, protocol, username
|
||||||
if e == nil {
|
if e == nil {
|
||||||
message := ""
|
message := ""
|
||||||
if err != nil {
|
if err != nil {
|
||||||
message = err.Error()
|
message = strings.Trim(err.Error(), "\x00")
|
||||||
}
|
}
|
||||||
|
|
||||||
e = ¬ifier.LogEvent{
|
e = ¬ifier.LogEvent{
|
||||||
|
|
Loading…
Reference in a new issue