Skip to content

Commit

Permalink
Minor tweak to the error message for when the config cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio committed Mar 10, 2023
1 parent b686fb1 commit e5574ef
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static string FindFileInRepository(string fileName, string subdir = null)
{
return files[0];
}
else
else if (files.Count > 1)
{
string message = $"File {fileName} exists in several locations and which one to load cannot be determined.";
if (null != subdir)
Expand All @@ -98,6 +98,15 @@ public static string FindFileInRepository(string fileName, string subdir = null)
Console.WriteLine(file);
}
return null;
}
else
{
string message = $"{fileName} does not exist within the repository.";
if (null != subdir)
{
message = message + $" Subdirectory hint was {subdir}.";
}
Console.WriteLine(message);
}
}
else
Expand Down

0 comments on commit e5574ef

Please sign in to comment.