Skip to content

Commit eb7dfed

Browse files
chusemanermshiperete
authored andcommitted
Throw better exception when refs dir is missing
1 parent ddb7c6e commit eb7dfed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitVersionCore/GitVersionCacheKeyFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static List<string> CalculateDirectoryContents(string root)
4242

4343
if (!Directory.Exists(root))
4444
{
45-
throw new ArgumentException();
45+
throw new DirectoryNotFoundException($"Root directory does not exist: {root}");
4646
}
4747

4848
dirs.Push(root);

0 commit comments

Comments
 (0)