Skip to content

Commit

Permalink
Fix wrong argument on CLAN_TAG_EXISTS error (fixes #341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Sep 22, 2019
1 parent 803b211 commit f127590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/faforever/api/clan/ClanService.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Clan create(String name, String tag, String description, Player creator) {
throw new ApiException(new Error(ErrorCode.CLAN_NAME_EXISTS, name));
}
if (clanRepository.findOneByTag(tag).isPresent()) {
throw new ApiException(new Error(ErrorCode.CLAN_TAG_EXISTS, name));
throw new ApiException(new Error(ErrorCode.CLAN_TAG_EXISTS, tag));
}

Clan clan = new Clan();
Expand Down

0 comments on commit f127590

Please sign in to comment.