be more clear about errors
This commit is contained in:
parent
a54c51f954
commit
520458beae
1 changed files with 3 additions and 5 deletions
|
@ -69,7 +69,7 @@ class abook_carddav extends addressbook_backend {
|
|||
$this->listing = $param['listing'];
|
||||
}
|
||||
|
||||
$this->open(true);
|
||||
return $this->open(true);
|
||||
}
|
||||
else {
|
||||
return $this->set_error('Invalid argument to constructor');
|
||||
|
@ -87,12 +87,10 @@ class abook_carddav extends addressbook_backend {
|
|||
$discover = new Discovery();
|
||||
$abooks = $discover->discoverAddressbooks($this->account);
|
||||
} catch (\Exception $e) {
|
||||
// $log->error("!!! Error during addressbook discovery: " . $e->getMessage());
|
||||
exit(1);
|
||||
return $this->set_error("!!! Error during addressbook discovery: " . $e->getMessage());
|
||||
}
|
||||
if (count($abooks) <= 0) {
|
||||
// $log->warning("Cannot proceed because no addressbooks were found - exiting");
|
||||
exit(0);
|
||||
return $this->set_error("Cannot proceed because no addressbooks were found - exiting");
|
||||
}
|
||||
//////////////////////////////////////////////////////////
|
||||
// THE FOLLOWING SHOWS HOW TO PERFORM A SYNCHRONIZATION //
|
||||
|
|
Loading…
Reference in a new issue