Takes care when there is an error in the spec file.