Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit ca1a215

Browse files
committed
Update ErrorType.ClonedFailed message
Changed ClonedFailed to CloneOrOpenFailed.
1 parent cfadc62 commit ca1a215

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GitHub.App/Services/StandardUserErrors.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public enum ErrorType
2525
CannotDropFolder,
2626
CannotDropFolderUnauthorizedAccess,
2727
ClipboardFailed,
28-
ClonedFailed,
28+
CloneOrOpenFailed,
2929
CloneFailedNotLoggedIn,
3030
CommitCreateFailed,
3131
CommitRevertFailed,
@@ -123,7 +123,7 @@ public static class StandardUserErrors
123123
},
124124
{ ErrorType.ClipboardFailed, Map(Defaults("Failed to copy text to the clipboard.")) },
125125
{
126-
ErrorType.ClonedFailed, Map(Defaults("Failed to clone the repository '{0}'", "Email [email protected] if you continue to have problems."),
126+
ErrorType.CloneOrOpenFailed, Map(Defaults("Failed to clone or open the repository '{0}'", "Email [email protected] if you continue to have problems."),
127127
new[]
128128
{
129129
new Translation(@"fatal: bad config file line (\d+) in (.+)", "Failed to clone the repository '{0}'", @"The config file '$2' is corrupted at line $1. You may need to open the file and try to fix any errors."),

src/GitHub.TeamFoundation.14/Connect/GitHubConnectSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async Task DoClone()
158158
catch (Exception e)
159159
{
160160
var teServices = ServiceProvider.TryGetService<ITeamExplorerServices>();
161-
teServices.ShowError(e.GetUserFriendlyErrorMessage(ErrorType.ClonedFailed, result.Url.RepositoryName));
161+
teServices.ShowError(e.GetUserFriendlyErrorMessage(ErrorType.CloneOrOpenFailed, result.Url.RepositoryName));
162162
}
163163
}
164164
}

0 commit comments

Comments
 (0)