mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix(commands): use token for display in missing param error instead of using param name directly
This commit is contained in:
parent
319a79d1d6
commit
877592588c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue