Merge "Align git exception messages"

This commit is contained in:
Zuul 2019-07-11 03:51:40 +00:00 committed by Gerrit Code Review
commit 1c3e511934
2 changed files with 3 additions and 3 deletions

View File

@ -59,12 +59,12 @@ class GitSSHException(PeglegBaseException):
class GitConfigException(PeglegBaseException):
"""Exception that occurs when reading Git repo config fails."""
message = 'Failed to read Git config file for repo path: %(repo_path)s'
message = 'Failed to read Git config file for repo path: %(repo_url)s'
class GitInvalidRepoException(PeglegBaseException):
"""Exception raised when an invalid repository is detected."""
message = 'The repository path or URL is invalid: %(repo_path)s'
message = 'The repository path or URL is invalid: %(repo_url)s'
class GitMissingUserException(PeglegBaseException):

View File

@ -499,6 +499,6 @@ def normalize_repo_path(repo_url_or_path):
orig_repo_url_or_path)
LOG.error(msg)
raise exceptions.GitInvalidRepoException(
repo_path=orig_repo_url_or_path)
repo_url=orig_repo_url_or_path)
return repo_url_or_path, sub_path