mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Preserve formatting of regex error
This commit is contained in:
parent
9b2cd52b97
commit
92aa5404c9
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ impl AnkiError {
|
||||||
}
|
}
|
||||||
AnkiError::ParseNumError => tr.errors_parse_number_fail().into(),
|
AnkiError::ParseNumError => tr.errors_parse_number_fail().into(),
|
||||||
AnkiError::FilteredDeckError(err) => err.localized_description(tr),
|
AnkiError::FilteredDeckError(err) => err.localized_description(tr),
|
||||||
|
AnkiError::InvalidRegex(err) => format!("<pre>{}</pre>", err),
|
||||||
_ => format!("{:?}", self),
|
_ => format!("{:?}", self),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue