We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad1d110 commit 43603afCopy full SHA for 43603af
pkg/server/utils.go
@@ -17,7 +17,6 @@ limitations under the License.
17
package server
18
19
import (
20
- "errors"
21
"fmt"
22
"net"
23
"net/http"
@@ -33,10 +32,10 @@ import (
33
32
func DomainWithMXRecord(domain string) error {
34
records, err := net.LookupMX(domain)
35
if err != nil {
36
- return err
+ return fmt.Errorf("no MX records for domain %s: %w", domain, err)
37
}
38
if len(records) == 0 {
39
- return errors.New("no MX records")
+ return fmt.Errorf("no MX records for domain %s", domain)
40
41
return nil
42
0 commit comments