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:
parent
e28a3d7f7a
commit
b17b8b0bef
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue