Continue removing MyError.
This commit is contained in:
@@ -234,9 +234,9 @@ fn greater_block_body<'c, 'b, 'g, 'r, 's>(
|
||||
return Err(CustomError::Static(
|
||||
"Cannot nest objects of the same element",
|
||||
));
|
||||
return Err(nom::Err::Error(CustomError::MyError(MyError(
|
||||
return Err(nom::Err::Error(CustomError::Static(
|
||||
"Cannot nest objects of the same element",
|
||||
))));
|
||||
)));
|
||||
}
|
||||
let exit_with_name = greater_block_end(name);
|
||||
let (remaining, _nl) = tuple((space0, line_ending))(input)?;
|
||||
|
||||
Reference in New Issue
Block a user