pub fn parse_on_fail(s: &str) -> Result<OnFailAction, Error>
Parse an on-fail string into an OnFailAction.