Skip to content

Commit

Permalink
better error
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Aug 12, 2024
1 parent 3a4bcaf commit cfce8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion email_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cfce8d2

Please sign in to comment.