mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-25 14:07:05 +02:00
changed json exceptions
This commit is contained in:
parent
5adc7c75f3
commit
c7beff2191
2 changed files with 84 additions and 71 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue