1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

View File

@ -55,6 +55,9 @@ function runGitCommand(args,cwd,env) {
err.code = "git_auth_failed"; err.code = "git_auth_failed";
} else if(/Permission denied \(publickey\)/.test(stderr)) { } else if(/Permission denied \(publickey\)/.test(stderr)) {
err.code = "git_auth_failed"; 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)) { } else if(/Connection refused/.test(stderr)) {
err.code = "git_connection_failed"; err.code = "git_connection_failed";
} else if (/commit your changes or stash/.test(stderr)) { } else if (/commit your changes or stash/.test(stderr)) {