error checking for repo creation