Added source-location to all ecs.

Closes #2475.
This commit is contained in:
Klemens
2022-12-20 13:16:39 +08:00
committed by Klemens Morgenstern
parent ce99605ef9
commit 860bfbdeab
8 changed files with 117 additions and 103 deletions
+8 -4
View File
@@ -369,8 +369,10 @@ write(void const* data,
&state_, hooks(),
static_cast<const char*>(data), size);
if(! ec)
ec = detail::make_nodejs_error(
static_cast<int>(state_.http_errno));
{
BOOST_BEAST_ASSIGN_EC(ec, detail::make_nodejs_error(
static_cast<int>(state_.http_errno)));
}
if(ec)
return 0;
return n;
@@ -384,8 +386,10 @@ write_eof(error_code& ec)
ec_ = &ec;
http_parser_execute(&state_, hooks(), nullptr, 0);
if(! ec)
ec = detail::make_nodejs_error(
static_cast<int>(state_.http_errno));
{
BOOST_BEAST_ASSIGN_EC(ec, detail::make_nodejs_error(
static_cast<int>(state_.http_errno)));
}
}
template<class Derived>