1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-08-13 20:04:49 +02:00

Chore: Improve error message for From header parsing failure (#477)

This commit is contained in:
Ralph Slooten
2025-04-05 15:51:29 +13:00
parent 6acbbb4446
commit 04289091bc

View File

@@ -133,7 +133,7 @@ func ReleaseMessage(w http.ResponseWriter, r *http.Request) {
fromAddresses, err := m.Header.AddressList("From")
if err != nil {
httpError(w, err.Error())
httpError(w, "Failed: unable to parse From header: "+err.Error())
return
}