Skip to content

Commit

Permalink
log: improve cmd error message (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed May 28, 2024
1 parent 7af8ac8 commit d45b8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/src/cfg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d45b8cc

Please sign in to comment.