forked from boostorg/beast
error_codes use source_location.
This commit is contained in:
1 parent
9473c10dde
commit
f4d1936bb2
27 files changed
+117
-84
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user