changed json exceptions

This commit is contained in:
badaix 2015-09-05 22:38:47 +02:00
parent 4c94025747
commit 49663560ac
2 changed files with 84 additions and 71 deletions

View file

@ -122,7 +122,7 @@ bool JsonRequest::hasParam(const std::string& key)
Json JsonRequest::getParam(const std::string& key)
{
if (!hasParam(key))
throw JsonInvalidParamsException(*this);
throw JsonInvalidParamsException(id);
return params[key];
}