From c9531bc588c554aab14016c26c6c541a9f513331 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Mar 2024 00:00:04 -0400 Subject: [PATCH] fix: update error messages to reflect full config keys --- config/mail.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/mail.go b/config/mail.go index 87fa8a0..9311958 100644 --- a/config/mail.go +++ b/config/mail.go @@ -19,16 +19,16 @@ type MailConfig struct { func (m MailConfig) Validate() error { if m.Host == "" { - return errors.New("host is required") + return errors.New("core.mail.host is required") } if m.Username == "" { - return errors.New("username is required") + return errors.New("core.mail.username is required") } if m.Password == "" { - return errors.New("password is required") + return errors.New("core.mail.password is required") } if m.From == "" { - return errors.New("from is required") + return errors.New("core.mail.from is required") } return nil }