mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
88b153bc12
commit
dba195b396
@ -48,7 +48,9 @@ function runGitCommand(args,cwd,env) {
|
|||||||
var err = new Error(stderr);
|
var err = new Error(stderr);
|
||||||
err.stdout = stdout;
|
err.stdout = stdout;
|
||||||
err.stderr = stderr;
|
err.stderr = stderr;
|
||||||
if(/Connection refused/i.test(stderr)) {
|
if (/Connection refused/i.test(stderr)) {
|
||||||
|
err.code = "git_connection_failed";
|
||||||
|
} else if (/Connection timed out/i.test(stderr)) {
|
||||||
err.code = "git_connection_failed";
|
err.code = "git_connection_failed";
|
||||||
} else if (/fatal: could not read/i.test(stderr)) {
|
} else if (/fatal: could not read/i.test(stderr)) {
|
||||||
// Username/Password
|
// Username/Password
|
||||||
|
Loading…
Reference in New Issue
Block a user