mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Throw a more understable exception
This commit is contained in:
parent
a13a319efb
commit
b532adfaaa
@ -99,7 +99,7 @@ class AddressBookController extends Controller {
|
||||
|
||||
$backend = $this->app->getBackend($params['backend']);
|
||||
if(!$backend->hasAddressBookMethodFor(\OCP\PERMISSION_CREATE)) {
|
||||
throw new \Exception('Not implemented');
|
||||
throw new \Exception('This backend does not support adding address books', 501);
|
||||
}
|
||||
try {
|
||||
$id = $backend->createAddressBook($this->request->post);
|
||||
|
Loading…
x
Reference in New Issue
Block a user