mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 00:46:36 +03:00
rename variables, struct fields and functions to include an "x" when they can panic for handling errors
and document the convention in develop.txt. spurred by running errcheck again (it has been a while). it still has too many false to enable by default.
This commit is contained in:
@ -313,7 +313,7 @@ binary should be setgid that group:
|
||||
homedir, err := os.UserHomeDir()
|
||||
xcheckf(err, "finding homedir for storing message after failed delivery")
|
||||
maildir := filepath.Join(homedir, "moxsubmit.failures")
|
||||
os.Mkdir(maildir, 0700)
|
||||
os.Mkdir(maildir, 0700) // Exists is no problem, failure is found during create.
|
||||
f, err := os.CreateTemp(maildir, "newmsg.")
|
||||
xcheckf(err, "creating temp file for storing message after failed delivery")
|
||||
// note: not removing the partial file if writing/closing below fails.
|
||||
|
Reference in New Issue
Block a user