Skip to content

Commit

Permalink
🔊 (#197): Log correct exception
Browse files Browse the repository at this point in the history
  • Loading branch information
d135-1r43 committed Dec 19, 2024
1 parent d4cb21f commit 2577579
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ private RoleRepresentation createOwnerRole(RealmResource realmResource, String o
ownerRole.setName(ownerRoleName);
try {
realmResource.roles().create(ownerRole);
} catch (Exception ignored) {
LOG.warn("Could not create owner role: {}", ownerRoleName, e);
} catch (Exception roleException) {
LOG.warn("Could not create owner role: {}", ownerRoleName, roleException);
}

ownerRole = realmResource.roles().get(ownerRoleName).toRepresentation();
Expand Down

0 comments on commit 2577579

Please sign in to comment.