Error handling, if no repo is defined