Merge "Align git exception messages"
This commit is contained in:
commit
1c3e511934
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue