check if error with name