Differential D16801 Diff 40466 src/applications/calendar/import/PhabricatorCalendarICSImportEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/import/PhabricatorCalendarICSImportEngine.php
Show All 22 Lines | try { | ||||
array( | array( | ||||
'ics.code' => $ex->getParserFailureCode(), | 'ics.code' => $ex->getParserFailureCode(), | ||||
'ics.message' => $ex->getMessage(), | 'ics.message' => $ex->getMessage(), | ||||
)); | )); | ||||
$document = null; | $document = null; | ||||
} | } | ||||
foreach ($parser->getWarnings() as $warning) { | |||||
$import->newLogMessage( | |||||
PhabricatorCalendarImportICSWarningLogType::LOGTYPE, | |||||
array( | |||||
'ics.warning.code' => $warning['code'], | |||||
'ics.warning.line' => $warning['line'], | |||||
'ics.warning.text' => $warning['text'], | |||||
'ics.warning.message' => $warning['message'], | |||||
)); | |||||
} | |||||
return $this->importEventDocument($viewer, $import, $document); | return $this->importEventDocument($viewer, $import, $document); | ||||
} | } | ||||
} | } |