Skip to content

Commit

Permalink
fix(git): Throw ExternalHostError on early EOF (#8995)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Mar 5, 2021
1 parent b50e216 commit 39dcd84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/git/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 39dcd84

Please sign in to comment.