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

parent da96b901
......@@ -18,7 +18,7 @@ public class DeleteUserUseCaseImpl implements DeleteUserUseCase {
@Override
public void deleteById(String 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);
}
}
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