0
0
Fork 0
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:
Jason Volk 2019-06-15 02:01:47 -06:00
parent c59894a01b
commit 9b34f75e0d

View file

@ -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