Unify error message if repo is unlocked.