fix(git): Throw ExternalHostError on early EOF (#8995)

This commit is contained in:
Sergei Zharinov 2021-03-05 20:45:30 +04:00 committed by GitHub
parent b50e21646e
commit 39dcd84296
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,6 +72,7 @@ function checkForPlatformFailure(err: Error): void {
'TF401027:', // You need the Git 'GenericContribute' permission to perform this action
'Could not resolve host',
' is not a member of team',
'early EOF',
];
for (const errorStr of externalHostFailureStrings) {
if (err.message.includes(errorStr)) {