Skip to content

Commit

Permalink
tweak(Calendar/Import/Ical): show failed url in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pschuele committed Mar 26, 2024
1 parent c8332cc commit 0612b21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tine20/Calendar/Import/Ical.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ protected function _getImportEvents($_resource, $container)
'password' => $cc->password,
]] : []);
if (!$_resource) {
throw new Tinebase_Exception_NotFound('url not found or timeout');
throw new Tinebase_Exception_NotFound('URL not found or timeout: ' . $this->_options['url']);
}
}
$converter = Calendar_Convert_Event_VCalendar_Factory::factory(Calendar_Convert_Event_VCalendar_Factory::CLIENT_GENERIC);
$converter = Calendar_Convert_Event_VCalendar_Factory::factory(
Calendar_Convert_Event_VCalendar_Factory::CLIENT_GENERIC
);
if (isset($this->_options['onlyBasicData'])) {
$converter->setOptions(array('onlyBasicData' => $this->_options['onlyBasicData']));
}
Expand Down

0 comments on commit 0612b21

Please sign in to comment.