0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::resource: Use template ctor for http::error.

This commit is contained in:
Jason Volk 2019-10-01 17:54:27 -07:00
parent e28a3d7f7a
commit b17b8b0bef

View file

@ -569,28 +569,28 @@ catch(const ctx::timeout &e)
{
throw http::error
{
http::REQUEST_TIMEOUT, "%s", e.what()
"%s", http::REQUEST_TIMEOUT, e.what()
};
}
catch(const mods::unavailable &e)
{
throw http::error
{
http::SERVICE_UNAVAILABLE, "%s", e.what()
"%s", http::SERVICE_UNAVAILABLE, e.what()
};
}
catch(const std::bad_function_call &e)
{
throw http::error
{
http::SERVICE_UNAVAILABLE, "%s", e.what()
"%s", http::SERVICE_UNAVAILABLE, e.what()
};
}
catch(const std::out_of_range &e)
{
throw http::error
{
http::NOT_FOUND, "%s", e.what()
"%s", http::NOT_FOUND, e.what()
};
}