mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-12 14:17:46 +02:00
changed json exceptions
This commit is contained in:
parent
4c94025747
commit
49663560ac
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