Handle host key verification as auth error

This commit is contained in:
Nick O'Leary 2018-02-07 11:32:50 +00:00
parent aebe080e85
commit 42a7e902e6
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ function runGitCommand(args,cwd,env) {
err.code = "git_auth_failed";
} else if(/Permission denied \(publickey\)/.test(stderr)) {
err.code = "git_auth_failed";
} else if(/Host key verification failed/.test(stderr)) {
// TODO: handle host key verification errors separately
err.code = "git_auth_failed";
} else if(/Connection refused/.test(stderr)) {
err.code = "git_connection_failed";
} else if (/commit your changes or stash/.test(stderr)) {