Improve error condition checking in repository dialog.