fix(commands): use token for display in missing param error instead of using param name directly

This commit is contained in:
dusk 2025-01-11 23:22:00 +09:00
parent 319a79d1d6
commit 877592588c
No known key found for this signature in database

View file

@ -183,7 +183,7 @@ fn next_token(
}
TokenMatchResult::MissingParameter { name } => {
return Err(Some(format_smolstr!(
"Missing parameter `{name}` in command `{prefix}{input} [{name}]`."
"Missing parameter `{name}` in command `{prefix}{input} {token}`."
)))
}
TokenMatchResult::NoMatch => {}