Don't print imap errors to ui
This fixes ~sircmpwn/aerc2#245. This sets up the imap client to send error messages to the logger of the worker. Errors now end up in the bottom status line. https://todo.sr.ht/~sircmpwn/aerc2/245
This commit is contained in:
parent
507c90537c
commit
aeca428c14
|
@ -126,6 +126,7 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error {
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("Unknown IMAP scheme %s", w.config.scheme)
|
return fmt.Errorf("Unknown IMAP scheme %s", w.config.scheme)
|
||||||
}
|
}
|
||||||
|
c.ErrorLog = w.worker.Logger
|
||||||
|
|
||||||
if w.config.user != nil {
|
if w.config.user != nil {
|
||||||
username := w.config.user.Username()
|
username := w.config.user.Username()
|
||||||
|
|
Loading…
Reference in New Issue