0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

ircd: Catch inner timeouts on client request.

This commit is contained in:
Jason Volk 2018-03-09 10:54:29 -08:00
parent e123cfb395
commit 1dec67d81e

View file

@ -345,6 +345,13 @@ catch(const std::out_of_range &e)
http::NOT_FOUND, "M_NOT_FOUND", "%s", e.what()
};
}
catch(const ctx::timeout &e)
{
throw m::error
{
http::BAD_GATEWAY, "M_REQUEST_TIMEOUT", "%s", e.what()
};
}
ircd::resource::method &
ircd::resource::operator[](const string_view &name)