Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/GitHubExtension/Providers/RepositoryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,12 @@ public IAsyncOperation<ProviderOperationResult> CloneRepositoryAsync(IRepository
catch (LibGit2Sharp.LibGit2SharpException libGitTwoException)
{
Log.Error(libGitTwoException, $"Either no logged in account has access to this repository, or the repository can't be found.");
return new ProviderOperationResult(ProviderOperationStatus.Failure, libGitTwoException, "LibGit2 library threw an exception.", "LibGit2 library threw an exception.");
return new ProviderOperationResult(ProviderOperationStatus.Failure, libGitTwoException, libGitTwoException.Message, libGitTwoException.Message);
}
catch (Exception e)
{
Log.Error(e, "Could not clone the repository.");
return new ProviderOperationResult(ProviderOperationStatus.Failure, e, "Something happened when cloning the repository.", "Something happened when cloning the repository.");
return new ProviderOperationResult(ProviderOperationStatus.Failure, e, e.Message, e.Message);
}

return new ProviderOperationResult(ProviderOperationStatus.Success, new ArgumentException("Nothing wrong"), "Nothing wrong", "Nothing wrong");
Expand Down