mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-03 03:11:43 +02:00
Fix RPC error results
This commit is contained in:
parent
9e6009cad0
commit
ea07cb715d
3 changed files with 48 additions and 28 deletions
|
@ -157,7 +157,8 @@ void Server::processRequest(const jsonrpcpp::request_ptr& request, AuthInfo& aut
|
|||
else
|
||||
{
|
||||
LOG(ERROR, LOG_TAG) << "Method not found: " << request->method() << "\n";
|
||||
throw jsonrpcpp::MethodNotFoundException(request->id());
|
||||
auto response = std::make_shared<jsonrpcpp::MethodNotFoundException>(request->id());
|
||||
on_response(std::move(response), nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue