pub fn map_add_intent( desc: &'static str, intent: &'static str, nom_err: Err<Error<&str>>, ) -> Error
Convert a nom error into an owned error and add the parsing intent.
This maps to a Error::ParseError.
Error::ParseError