add line contents to error buffer