Fix fmt typos

This commit is contained in:
Daniel Peukert 2025-06-23 19:27:39 +02:00
parent 8ab03b4cf8
commit 187aed078c
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ func newLogClient(config *Config, ctlog *loglist.Log) (ctclient.Log, ctclient.Is
logGetter: client,
}, nil
default:
return nil, nil, fmt.Errorf("log uses unknown protocol")
return nil, nil, errors.New("log uses unknown protocol")
}
}

View File

@ -99,7 +99,7 @@ func sendEmail(ctx context.Context, to []string, notif *notification) error {
if err := sendmail.Run(); err == nil || err == exec.ErrWaitDelay {
return nil
} else if sendmailCtx.Err() != nil && ctx.Err() == nil {
return fmt.Errorf("error sending email to %v: sendmail command timed out")
return fmt.Errorf("error sending email to %v: sendmail command timed out", to)
} else if ctx.Err() != nil {
// if the context was canceled, we can't be sure that the error is the fault of sendmail, so ignore it
return ctx.Err()