catch on new line, and replace parseError with just err