deprecate `should_ignore_error` (#5899)