Identification of error in a statement