mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
If the priority range of a proto / flatbuffer connection is not in the valid range (100 - 199) we will send an error message to the client as well as in the console output
Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
@@ -126,7 +126,8 @@ void ProtoClientConnection::handleColorCommand(const proto::ColorRequest &messag
|
||||
|
||||
if (priority < 100 || priority >= 200)
|
||||
{
|
||||
sendErrorReply("The priority " + std::to_string(priority) + " is not in the priority range between 100 and 199.");
|
||||
sendErrorReply("The priority " + std::to_string(priority) + " is not in the valid priority range between 100 and 199.");
|
||||
Error(_log, "The priority %d is not in the proto-connection range between 100 and 199.", priority);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -156,7 +157,8 @@ void ProtoClientConnection::handleImageCommand(const proto::ImageRequest &messag
|
||||
|
||||
if (priority < 100 || priority >= 200)
|
||||
{
|
||||
sendErrorReply("The priority " + std::to_string(priority) + " is not in the priority range between 100 and 199.");
|
||||
sendErrorReply("The priority " + std::to_string(priority) + " is not in the valid priority range between 100 and 199.");
|
||||
Error(_log, "The priority %d is not in the proto-connection range between 100 and 199.", priority);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user