anyError helper method