Commit b6013a92 authored by Max Kellermann's avatar Max Kellermann

lib/curl/Request: merge two "try" blocks

parent 19af3644
......@@ -171,13 +171,7 @@ CurlRequest::Done(CURLcode result) noexcept
msg = curl_easy_strerror(result);
throw FormatRuntimeError("CURL failed: %s", msg);
}
} catch (...) {
state = State::CLOSED;
handler.OnError(std::current_exception());
return;
}
try {
FinishBody();
} catch (...) {
state = State::CLOSED;
......
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