handle search errors