mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
use already exists exceptions always with an appropriate message
This commit is contained in:
@@ -159,7 +159,7 @@ public class DefaultUserManager extends AbstractUserManager
|
||||
|
||||
if (userDAO.contains(user.getName()))
|
||||
{
|
||||
throw new UserAlreadyExistsException(user.getName());
|
||||
throw new UserAlreadyExistsException(user.getName().concat(" user already exists"));
|
||||
}
|
||||
|
||||
AssertUtil.assertIsValid(user);
|
||||
|
||||
Reference in New Issue
Block a user