Continue removing MyError.

This commit is contained in:
Tom Alexander
2023-10-17 10:35:33 -04:00
parent e776a051ad
commit 20c4a0f8f7
13 changed files with 29 additions and 37 deletions

View File

@@ -231,9 +231,6 @@ fn greater_block_body<'c, 'b, 'g, 'r, 's>(
context_name: &'c str,
) -> Res<OrgSource<'s>, (&'s str, Vec<Element<'s>>)> {
if in_section(context, context_name) {
return Err(CustomError::Static(
"Cannot nest objects of the same element",
));
return Err(nom::Err::Error(CustomError::Static(
"Cannot nest objects of the same element",
)));