check there is an error line before removing it