Skip to content

Commit de7160b

Browse files
authored
Merge pull request #917 from asbjornu/feature/do-not-swallow-libgit2sharp-exception
Don't swallow exceptions from LibGit2Sharp
2 parents 66bc2b0 + c4f0e76 commit de7160b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/GitVersionCore/GitPreparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static void CloneRepository(string repositoryUrl, string gitDirectory, Authentic
191191
throw new Exception("Not found: The repository was not found");
192192
}
193193

194-
throw new Exception("There was an unknown problem with the Git repository you provided");
194+
throw new Exception("There was an unknown problem with the Git repository you provided", ex);
195195
}
196196
}
197197
}

src/GitVersionCore/GitVersionFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public SemanticVersion FindVersion(GitVersionContext context)
1414
var filePath = Path.Combine(context.Repository.GetRepositoryDirectory(), "NextVersion.txt");
1515
if (File.Exists(filePath))
1616
{
17-
throw new WarningException("NextVersion.txt has been depreciated. See http://gitversion.readthedocs.org/en/latest/configuration/ for replacement");
17+
throw new WarningException("NextVersion.txt has been deprecated. See http://gitversion.readthedocs.org/en/latest/configuration/ for replacement");
1818
}
1919

2020
return new NextVersionCalculator().FindVersion(context);

0 commit comments

Comments
 (0)