1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-05 03:36:15 +02:00

Add forgotten file in previous commit

This commit is contained in:
Lizzie Crowdagger 2022-07-22 02:07:24 +02:00
parent fc166db979
commit 20b8f8568c
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,10 @@
ChangeLog
=========
current (???)
-------------
* Fix an issue where horizontal rules could be interpreted as additional front matter
0.15.2 (2020-07-07)
-----------------------
* Fixed endless progress bar on renderer failure

View File

@ -371,6 +371,15 @@ impl From<FromUtf8Error> for Error {
}
}
impl From<std::str::Utf8Error> for Error {
fn from(err: std::str::Utf8Error) -> Error {
Error::render(
Source::empty(),
lformat!("UTF-8 error: {error}", error = err),
)
}
}
impl From<fmt::Error> for Error {
fn from(err: fmt::Error) -> Error {
Error::default(