chore: add missing symbol (#2641)

Signed-off-by: xixishidibei <xixishidibei@outlook.com>
This commit is contained in:
xixishidibei 2024-09-18 23:11:40 +08:00 committed by GitHub
parent 481135f93a
commit 45c558dec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ pub fn extract_shortcodes(
if let Some(def) = definitions.get(&sc.name) {
sc.tera_name = def.tera_name.clone();
} else {
return Err(Error::msg(format!("Found usage of a shortcode named `{}` but we do not know about. Make sure it's not a typo and that a field name `{}.{{html,md}} exists in the `templates/shortcodes` directory.", sc.name, sc.name)));
return Err(Error::msg(format!("Found usage of a shortcode named `{}` but we do not know about. Make sure it's not a typo and that a field name `{}.{{html,md}}` exists in the `templates/shortcodes` directory.", sc.name, sc.name)));
}
}