Skip to content

Commit

Permalink
Merge pull request #10005 from nextcloud/group-exists-error
Browse files Browse the repository at this point in the history
show error message when group exists
  • Loading branch information
MorrisJobke authored Jun 26, 2018
2 parents 2b8a4f1 + 290b5b5 commit e9001fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/provisioning_api/lib/Controller/GroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function addGroup(string $groupid): DataResponse {
}
// 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();
Expand Down

0 comments on commit e9001fe

Please sign in to comment.