mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/media/thumbnail: Throw better exception type here.
This commit is contained in:
parent
c59894a01b
commit
9b34f75e0d
1 changed files with 4 additions and 4 deletions
|
@ -88,15 +88,15 @@ get__thumbnail(client &client,
|
||||||
const resource::request &request)
|
const resource::request &request)
|
||||||
{
|
{
|
||||||
if(request.parv.size() < 1)
|
if(request.parv.size() < 1)
|
||||||
throw http::error
|
throw m::NEED_MORE_PARAMS
|
||||||
{
|
{
|
||||||
http::MULTIPLE_CHOICES, "Server name parameter required"
|
"Server name parameter required"
|
||||||
};
|
};
|
||||||
|
|
||||||
if(request.parv.size() < 2)
|
if(request.parv.size() < 2)
|
||||||
throw http::error
|
throw m::NEED_MORE_PARAMS
|
||||||
{
|
{
|
||||||
http::MULTIPLE_CHOICES, "Media ID parameter required"
|
"Media ID parameter required"
|
||||||
};
|
};
|
||||||
|
|
||||||
auto &server
|
auto &server
|
||||||
|
|
Loading…
Reference in a new issue