more verbose logging on invalid var 1 in seterror

This commit is contained in:
Vaxry 2023-01-22 16:51:32 +01:00
parent ef90a7ad13
commit b963a6624e

View file

@ -812,6 +812,10 @@ std::string dispatchSeterror(std::string request) {
if (vars.size() < 3) { if (vars.size() < 3) {
g_pHyprError->destroy(); g_pHyprError->destroy();
if (vars.size() == 2 && !vars[1].find("dis"))
return "var 1 not color or disable";
return "ok"; return "ok";
} }