style(user/application): cambio en el mensaje de error

parent da96b901
...@@ -18,7 +18,7 @@ public class DeleteUserUseCaseImpl implements DeleteUserUseCase { ...@@ -18,7 +18,7 @@ public class DeleteUserUseCaseImpl implements DeleteUserUseCase {
@Override @Override
public void deleteById(String id) { public void deleteById(String id) {
readUserRepository.readById(id) readUserRepository.readById(id)
.orElseThrow(() -> new EntityNotFoundException("El usuario con id " + id + " no existe.")); .orElseThrow(() -> new EntityNotFoundException("Usuario con id " + id + " no encontrado"));
deleteUserRepository.deleteById(id); deleteUserRepository.deleteById(id);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment