mirror of
https://github.com/lise-henry/crowbook
synced 2024-11-18 00:13:55 +01:00
Make Book::remove_yaml issues a warning when yaml block isn't valid
Previously, it was a debug message, but since it is probable the user would actually want this to be seen as YAML it's better if the message is more visible.
This commit is contained in:
parent
ae2f43193c
commit
98517c243b
@ -509,8 +509,8 @@ impl Book {
|
||||
valid_block = true;
|
||||
},
|
||||
Err(err) => {
|
||||
self.logger.debug(format!("Found something that looked like a YAML block:\n{}", &yaml_block));
|
||||
self.logger.debug(format!("... but it didn't parse correctly as YAML('{}'), so treating it like Markdown.", err));
|
||||
self.logger.warning(format!("Found something that looked like a YAML block:\n{}", &yaml_block));
|
||||
self.logger.warning(format!("... but it didn't parse correctly as YAML('{}'), so treating it like Markdown.", err));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user