forked from boostorg/beast
error_codes use source_location.
This commit is contained in:
committed by
Klemens Morgenstern
parent
9473c10dde
commit
f4d1936bb2
@@ -399,7 +399,7 @@ loop:
|
||||
++it;
|
||||
if(it == last)
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
if(*it != ' ' && *it != '\t')
|
||||
@@ -409,7 +409,7 @@ loop:
|
||||
// ';'
|
||||
if(*it != ';')
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
semi:
|
||||
@@ -419,7 +419,7 @@ semi:
|
||||
{
|
||||
if(it == last)
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
if(*it != ' ' && *it != '\t')
|
||||
@@ -430,7 +430,7 @@ semi:
|
||||
{
|
||||
if(! detail::is_token_char(*it))
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
auto const first = it;
|
||||
@@ -455,7 +455,7 @@ semi:
|
||||
++it;
|
||||
if(it == last)
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
}
|
||||
@@ -466,7 +466,7 @@ semi:
|
||||
}
|
||||
if(*it != '=')
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
++it; // skip '='
|
||||
@@ -475,7 +475,7 @@ semi:
|
||||
{
|
||||
if(it == last)
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
if(*it != ' ' && *it != '\t')
|
||||
@@ -488,7 +488,7 @@ semi:
|
||||
// token
|
||||
if(! detail::is_token_char(*it))
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
auto const first = it;
|
||||
@@ -514,7 +514,7 @@ semi:
|
||||
{
|
||||
if(it == last)
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
if(*it == '"')
|
||||
@@ -524,7 +524,7 @@ semi:
|
||||
++it;
|
||||
if(it == last)
|
||||
{
|
||||
ec = error::bad_chunk_extension;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::bad_chunk_extension);
|
||||
return it;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ struct basic_file_body<file_win32>
|
||||
return boost::none;
|
||||
if (nread == 0)
|
||||
{
|
||||
ec = error::short_read;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::short_read);
|
||||
return boost::none;
|
||||
}
|
||||
BOOST_ASSERT(nread != 0);
|
||||
|
||||
@@ -199,7 +199,7 @@ public:
|
||||
auto const size = read_size(b_, 65536);
|
||||
if(size == 0)
|
||||
{
|
||||
ec = error::buffer_overflow;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::buffer_overflow);
|
||||
goto upcall;
|
||||
}
|
||||
auto const mb =
|
||||
@@ -228,7 +228,7 @@ public:
|
||||
BOOST_ASSERT(p_.is_done());
|
||||
goto upcall;
|
||||
}
|
||||
ec = error::end_of_stream;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::end_of_stream);
|
||||
break;
|
||||
}
|
||||
if(ec)
|
||||
@@ -337,7 +337,7 @@ read_some(SyncReadStream& s, DynamicBuffer& b, basic_parser<isRequest>& p, error
|
||||
auto const size = read_size(b, 65536);
|
||||
if(size == 0)
|
||||
{
|
||||
ec = error::buffer_overflow;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::buffer_overflow);
|
||||
return total;
|
||||
}
|
||||
auto const mb =
|
||||
@@ -362,7 +362,7 @@ read_some(SyncReadStream& s, DynamicBuffer& b, basic_parser<isRequest>& p, error
|
||||
BOOST_ASSERT(p.is_done());
|
||||
return total;
|
||||
}
|
||||
ec = error::end_of_stream;
|
||||
BOOST_BEAST_ASSIGN_EC(ec, error::end_of_stream);
|
||||
break;
|
||||
}
|
||||
if(ec)
|
||||
|
||||
Reference in New Issue
Block a user