nom::add_error! [] [src]

macro_rules! add_error {
    ($i:expr, $code:expr, $submac:ident!( $($args:tt)* )) => { ... };
    ($i:expr, $code:expr, $f:expr) => { ... };
}

Add an error if the child parser fails

While error! does an early return and avoids backtracking, add_error! backtracks normally. It just provides more context for an error