Skip to content

Commit

Permalink
Added docs for failure details
Browse files Browse the repository at this point in the history
  • Loading branch information
Baran Dalgic committed Jan 3, 2022
1 parent 68457bc commit 9c53217
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/git/error_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,21 @@ func (rawToken rawToken) String() string {
func (class ErrorClass) String() string {
switch class {
case AuthInvalidUserOrPass:
return "git-auth-basic"
return "git-auth-basic-invalid"
case AuthInvalidKey:
return "git-auth-ssh"
return "git-auth-ssh-invalid"
case RevisionNotFound:
return "git-remote-revision"
case RepositoryNotFound:
return "git-remote-repository"
case AuthPrompted:
return "git-remote-private"
case AuthBasicIncomplete:
return "git-auth-basic-incomplete"
case AuthUnexpectedSSH:
return "git-auth-ssh-unexpected"
case AuthExpectedSSH:
return "git-auth-ssh-expected"
}

return "git-error"
Expand Down

0 comments on commit 9c53217

Please sign in to comment.