diff --git a/src/main/java/wtf/beatrice/releasehive/services/UserServiceImpl.java b/src/main/java/wtf/beatrice/releasehive/services/UserServiceImpl.java index ae0a757..b6d7460 100644 --- a/src/main/java/wtf/beatrice/releasehive/services/UserServiceImpl.java +++ b/src/main/java/wtf/beatrice/releasehive/services/UserServiceImpl.java @@ -36,7 +36,7 @@ public class UserServiceImpl implements UserService @Override public boolean deleteUser(UUID id) { if (userRepository.findById(id).isEmpty()) { - throw new UsernameNotFoundException(id.toString()); + throw new UsernameNotFoundException("User not found"); } if (userRepository.findById(id).isPresent()) { userRepository.delete(userRepository.findById(id).get());