prevent infinite recursion in on_assert_failed