Error checking on creating of repository.  Necessary for Mac.