error_codes use source_location.

This commit is contained in:
Klemens Morgenstern authored and Klemens Morgenstern committed 2022-10-26 00:06:01 +08:00
1 parent 9473c10dde
commit f4d1936bb2
27 files changed
+117 -84

No files matched your search

+2 -2
View File
@@ -96,7 +96,7 @@ public:
{
if(*length > body_.max_size())
{
ec = error::buffer_overflow;
BOOST_BEAST_ASSIGN_EC(ec, error::buffer_overflow);
return;
}
body_.reserve(beast::detail::clamp(*length));
@@ -113,7 +113,7 @@ public:
auto const size = body_.size();
if (extra > body_.max_size() - size)
{
ec = error::buffer_overflow;
BOOST_BEAST_ASSIGN_EC(ec, error::buffer_overflow);
return 0;
}