repository: improved error message for conflicting repository name

When trying to add a repository which name conflicts, return an explicit
message resuming the error.

Closes #33