From d45b8cc2e46916ece3dea471e1744d219388aad2 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 28 May 2024 11:52:56 +0700 Subject: [PATCH] log: improve cmd error message (#1074) --- parser/src/cfg/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/src/cfg/mod.rs b/parser/src/cfg/mod.rs index 6272db023..2b593bbad 100755 --- a/parser/src/cfg/mod.rs +++ b/parser/src/cfg/mod.rs @@ -2201,7 +2201,7 @@ fn parse_cmd( ) -> Result<&'static KanataAction> { const ERR_STR: &str = "cmd expects at least one string"; if !s.is_cmd_enabled { - bail!("cmd is not enabled, but cmd is in the configuration"); + bail!("cmd is not enabled for this kanata executable (did you use 'cmd_allowed' variants?), but is set in the configuration"); } let mut cmd = vec![]; collect_strings(ac_params, &mut cmd, s);