summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-01-22 16:51:32 +0100
committervaxerski <vaxry@vaxry.net>2023-01-22 16:51:32 +0100
commitb963a6624e544f7dde99d00585cb8f58fee0e723 (patch)
tree5345318c42d8a6f3f79df19e06f84f73384698fa /src/debug/HyprCtl.cpp
parentef90a7ad134ab57f734773c45af254b7bc876594 (diff)
more verbose logging on invalid var 1 in seterror
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index f5494415..63dbf411 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -812,6 +812,10 @@ std::string dispatchSeterror(std::string request) {
if (vars.size() < 3) {
g_pHyprError->destroy();
+
+ if (vars.size() == 2 && !vars[1].find("dis"))
+ return "var 1 not color or disable";
+
return "ok";
}