When parsing fails, save the lastError.