log.Fatal called os.Exit from a goroutine, bypassing deferred cleanup and crashing the process on any transient fetch error. Errors now propagate back to the caller via a buffered channel. Also adds a drain defer so the goroutine can always exit if the consumer returns early. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config.go | ||
| email.go | ||
| fetch.go | ||
| send.go | ||