From a88277c1bc81e0038aacebec71e5ec31a91d4a4a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 18 Jan 2024 17:19:58 +0100 Subject: [PATCH] email: improve mail.ParseAddress error message --- email/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email/worker.go b/email/worker.go index 9e2a0048e5d1ac5dea945b8d2180ae74e904e369..0123fc0b985a08b01daf6d7f1cfcbec18e64dcc3 100644 --- a/email/worker.go +++ b/email/worker.go @@ -180,7 +180,7 @@ func NewQueue(conf ini.File) *Queue { } addr, err := mail.ParseAddress(smtpFrom) if err != nil { - panic(err) + panic("Invalid [mail]smtp-from: " + err.Error()) } ownerAddr := &mail.Address{ Name: ownerName,