show error message when group exists

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-06-26 15:00:54 +02:00
parent 43f7ea5852
commit 290b5b5461
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ class GroupsController extends AUserData {
}
// Check if it exists
if($this->groupManager->groupExists($groupid)){
throw new OCSException('', 102);
throw new OCSException('group exists', 102);
}
$this->groupManager->createGroup($groupid);
return new DataResponse();