From da4297ee88a5161e95f5e70dc0d62764331c5759 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sat, 25 Sep 2021 18:45:00 -0700 Subject: [PATCH] Request: Clarify error messages --- src/requesthandler/rpc/Request.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/requesthandler/rpc/Request.cpp b/src/requesthandler/rpc/Request.cpp index 61509dd6..8845b769 100644 --- a/src/requesthandler/rpc/Request.cpp +++ b/src/requesthandler/rpc/Request.cpp @@ -214,12 +214,12 @@ obs_source_t *Request::ValidateScene(const std::string keyName, RequestStatus::R if (filter == OBS_WEBSOCKET_SCENE_FILTER_SCENE_ONLY && isGroup) { obs_source_release(ret); statusCode = RequestStatus::InvalidResourceType; - comment = "The specified source is not a scene."; + comment = "The specified source is not a scene. (Is group)"; return nullptr; } else if (filter == OBS_WEBSOCKET_SCENE_FILTER_GROUP_ONLY && !isGroup) { obs_source_release(ret); statusCode = RequestStatus::InvalidResourceType; - comment = "The specified source is not a group."; + comment = "The specified source is not a group. (Is scene)"; return nullptr; }