Change links in error messages (#3468)

* Update template.rs

* Update template.rs

* ./check (dae)
This commit is contained in:
sorata 2024-10-10 16:17:11 +05:30 committed by GitHub
parent 407e2dc43b
commit d98fc142f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,10 +28,10 @@ use crate::template_filters::apply_filters;
pub type FieldMap<'a> = HashMap<&'a str, u16>;
type TemplateResult<T> = std::result::Result<T, TemplateError>;
static TEMPLATE_ERROR_LINK: &str = "https://faqs.ankiweb.net/card-template-has-a-problem.html";
static TEMPLATE_BLANK_LINK: &str =
"https://anki.tenderapp.com/kb/card-appearance/the-front-of-this-card-is-blank";
static TEMPLATE_BLANK_CLOZE_LINK: &str = "https://faqs.ankiweb.net/no-cloze-found-on-card.html";
static TEMPLATE_ERROR_LINK: &str =
"https://docs.ankiweb.net/templates/errors/replacement-errors.md";
static TEMPLATE_BLANK_LINK: &str = "https://docs.ankiweb.net/templates/errors/empty-error.html";
static TEMPLATE_BLANK_CLOZE_LINK: &str = "https://docs.ankiweb.net/templates/errors/cloze-error.md";
// Lexing
//----------------------------------------