display the error in case the es query failed