1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-11 00:38:14 +00:00
This commit is contained in:
techknowlogick
2020-12-21 01:02:40 -05:00
committed by GitHub
parent 55d7e53d99
commit 70038719bf
37 changed files with 162 additions and 51 deletions

View File

@@ -471,7 +471,7 @@ func (cb KeyboardInteractiveChallenge) auth(session []byte, user string, c packe
}
if len(answers) != len(prompts) {
return authFailure, nil, errors.New("ssh: not enough answers from keyboard-interactive callback")
return authFailure, nil, fmt.Errorf("ssh: incorrect number of answers from keyboard-interactive callback %d (expected %d)", len(answers), len(prompts))
}
responseLength := 1 + 4
for _, a := range answers {