Merge pull request #10005 from nextcloud/group-exists-error

show error message when group exists
pull/10014/head
Morris Jobke 2018-06-26 17:35:55 +07:00 committed by GitHub
commit e9001fecb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -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();