We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598d9de commit 7c07ea2Copy full SHA for 7c07ea2
src/GitVersionExe/Program.cs
@@ -132,11 +132,11 @@ static void ConfigureLogging(Arguments arguments)
132
var logFileFullPath = Path.GetFullPath(arguments.LogFilePath);
133
var logFile = new FileInfo(logFileFullPath);
134
135
- if (logFile.Directory != null && !logFile.Directory.Exists)
136
- {
137
- // TODO: This should probably be done recursively. @asbjornu
+ if (logFile.Directory == null)
+ throw new DirectoryNotFoundException(String.Format("The directory of {0} does not exist.", logFile));
+
138
+ if (!logFile.Directory.Exists)
139
logFile.Directory.Create();
- }
140
141
if (!logFile.Exists)
142
{
0 commit comments