From 54b6d8f85cfe3dd7988d052cdba043bf6a0b7327 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Fri, 28 Mar 2025 23:11:42 +1300 Subject: [PATCH] Standardize error message casing in SMTP and POP3 configuration validation --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index db4c2bd..8dda670 100644 --- a/config/config.go +++ b/config/config.go @@ -319,7 +319,7 @@ func VerifyConfig() error { } if SMTPTLSCert != "" && SMTPTLSKey == "" || SMTPTLSCert == "" && SMTPTLSKey != "" { - return errors.New("[smtp] You must provide both an SMTP TLS certificate and a key") + return errors.New("[smtp] you must provide both an SMTP TLS certificate and a key") } if SMTPTLSCert != "" { @@ -404,7 +404,7 @@ func VerifyConfig() error { } } if POP3TLSCert != "" && POP3TLSKey == "" || POP3TLSCert == "" && POP3TLSKey != "" { - return errors.New("[pop3] You must provide both a POP3 TLS certificate and a key") + return errors.New("[pop3] you must provide both a POP3 TLS certificate and a key") } if POP3Listen != "" { _, err := net.ResolveTCPAddr("tcp", POP3Listen)