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

show error message when group exists
pull/10014/head
Morris Jobke 6 years ago committed by GitHub
commit e9001fecb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save