Commit 22a55e0d authored by neverlord's avatar neverlord

fixed missing throw

parent e0e5e5c4
...@@ -54,7 +54,7 @@ class buffer { ...@@ -54,7 +54,7 @@ class buffer {
if (recv_result == 0) { if (recv_result == 0) {
// connection closed // connection closed
if (throw_on_error) { if (throw_on_error) {
std::ios_base::failure("cannot read from a closed pipe/socket"); throw std::ios_base::failure("cannot read from a closed pipe/socket");
} }
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment