From 877592588ce667005ef5710205060f3ab7e9a094 Mon Sep 17 00:00:00 2001 From: dusk Date: Sat, 11 Jan 2025 23:22:00 +0900 Subject: [PATCH] fix(commands): use token for display in missing param error instead of using param name directly --- crates/commands/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/commands/src/lib.rs b/crates/commands/src/lib.rs index b1e235c1..8b77b83e 100644 --- a/crates/commands/src/lib.rs +++ b/crates/commands/src/lib.rs @@ -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 => {}