From e359d71a7fe98d06e3936fecd1338ef3f9d26938 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 19 Jun 2025 10:59:55 +0200 Subject: [PATCH] fix(cli): Correct config field reference in error message --- crates/typos-cli/src/policy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typos-cli/src/policy.rs b/crates/typos-cli/src/policy.rs index e7a4d3fc..d50dbdb2 100644 --- a/crates/typos-cli/src/policy.rs +++ b/crates/typos-cli/src/policy.rs @@ -193,7 +193,7 @@ impl<'s> ConfigEngine<'s> { for (type_name, type_engine) in type_.patterns() { if type_engine.extend_glob.is_empty() { if !type_matcher.contains_name(&type_name) { - anyhow::bail!("Unknown type definition `{}`, pass `--type-list` to see valid names or set `extend_glob` to add a new one.", type_name); + anyhow::bail!("Unknown type definition `{}`, pass `--type-list` to see valid names or set `extend-glob` to add a new one.", type_name); } } else { for glob in type_engine.extend_glob.iter() {