Add line parsing to errors and warnings.