change fixErrors to return error type, move unhandleableLinesMessage into its own helper