From b963a6624e544f7dde99d00585cb8f58fee0e723 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 22 Jan 2023 16:51:32 +0100 Subject: [PATCH] more verbose logging on invalid var 1 in seterror --- src/debug/HyprCtl.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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"; }