changed json exceptions

This commit is contained in:
badaix 2015-09-05 22:38:47 +02:00
parent 5adc7c75f3
commit c7beff2191
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];
}