Skip to content

Commit

Permalink
optimize parse symbol error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Nov 9, 2023
1 parent 844a744 commit 959992a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl Command {
let cmd = Self::get_cmd(&mut root_cmd, "@meta", position)?;
if key == "symbol" {
let (ch, name, choice_fn) = parse_symbol(&value).ok_or_else(|| {
anyhow!("@meta(line {}) invalid symbol '{}'", position, value,)
anyhow!("@meta(line {}) invalid symbol value", position)
})?;
cmd.symbols
.insert(ch, (name.to_string(), choice_fn.map(|v| v.to_string())));
Expand Down

0 comments on commit 959992a

Please sign in to comment.