error handling for missing repository