Fix error message
Implement function that update repository