Fix spelling of include guard, fix grammar of error message.

This commit is contained in:
Gene Hightower 2022-10-21 16:36:38 -07:00
parent fdc5c32b2d
commit 92852ddd9e
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#ifndef SMTP_ADDRESS_PARTSER_HPP_INCLUDED #ifndef SMTP_ADDRESS_PARSER_HPP_INCLUDED
#define SMTP_ADDRESS_PARTSER_HPP_INCLUDED #define SMTP_ADDRESS_PARSER_HPP_INCLUDED
/* /*
@ -33,4 +33,4 @@ SOFTWARE.
bool is_address(std::string_view s); bool is_address(std::string_view s);
#endif // SMTP_ADDRESS_PARTSER_HPP_INCLUDED #endif // SMTP_ADDRESS_PARSER_HPP_INCLUDED

View File

@ -215,7 +215,7 @@ void default_string_format_check(const std::string &format, const std::string &v
rfc3339_time_check(value); rfc3339_time_check(value);
} else if (format == "email") { } else if (format == "email") {
if (!is_ascii(value)) { if (!is_ascii(value)) {
throw std::invalid_argument(value + " is contains non-ASCII values, not RFC 5321 compliant."); throw std::invalid_argument(value + " contains non-ASCII values, not RFC 5321 compliant.");
} }
if (!is_address(value)) { if (!is_address(value)) {
throw std::invalid_argument(value + " is not a valid email according to RFC 5321."); throw std::invalid_argument(value + " is not a valid email according to RFC 5321.");