Skip to content

Commit

Permalink
Made error message more relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstottmoj committed Feb 6, 2025
1 parent 1649145 commit 577af6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controlpanel/api/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_repository_contents(self, repo_name: str, repo_path: str):
headers=self.headers,
)
if response.status_code == 404:
raise RepositoryNotFound(f"Repository '{repo_name}' not found, it may be private")
raise RepositoryNotFound(f"Repository path '{repo_path}' in {repo_name} not found. It may not exist")

return self._process_response(response)

Expand Down

0 comments on commit 577af6d

Please sign in to comment.