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

show error message when group exists
This commit is contained in:
Morris Jobke 2018-06-26 17:35:55 +02:00 committed by GitHub
commit e9001fecb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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