From cfce8d2a73cd653e9f8e79d6eec17d15d699c3ac Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:37:05 +0300 Subject: [PATCH] better error --- email_validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email_validation.go b/email_validation.go index 31b46235..9b60540d 100644 --- a/email_validation.go +++ b/email_validation.go @@ -177,7 +177,7 @@ func (m *EmailValidatorImpl) ValidateEmail(ctx context.Context, email string, ma return m.validateV4(ctx, email, mailBoxVerify) } - return EmailVerification{}, errors.New("ValidateEmail: v3 is not supported anymore, use v4") + return EmailVerification{}, errors.New("ValidateEmail: only v4 is supported") } func (m *EmailValidatorImpl) validateV4(ctx context.Context, email string, mailBoxVerify bool) (EmailVerification, error) {