Skip to content

Commit e24c3de

Browse files
tpmoddingclaude
andcommitted
Fix hyperion-project#977: return error reply for unknown adjustment id
Previously the handler silently returned without notifying the caller, resulting in a false success response. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 71c9d3a commit e24c3de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libsrc/api/JsonAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ void JsonAPI::handleAdjustmentCommand(const QJsonObject &message, const JsonApiC
881881
const QString adjustmentId = adjustment["id"].toString(adjustmentIds.first());
882882
ColorAdjustment* colorAdjustment = hyperion->getAdjustment(adjustmentId);
883883
if (colorAdjustment == nullptr) {
884-
Warning(_log, "Incorrect adjustment identifier: %s", adjustmentId.toStdString().c_str());
884+
sendErrorReply(QString("Incorrect adjustment identifier: %1").arg(adjustmentId), cmd);
885885
return;
886886
}
887887

0 commit comments

Comments
 (0)