Added error callback for search