mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-07-01 10:35:33 +02:00
Fix fmt typos
This commit is contained in:
parent
8ab03b4cf8
commit
187aed078c
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user