Skip to content

Commit

Permalink
Check if the given dir exist before proceeding.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Oct 5, 2022
1 parent 4a525e6 commit d384b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Benchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public static async Task<int> Main(string[] args)

public static async Task Handler(string[] releases, DirectoryInfo dataDir, int maxRepCount)
{
if (!dataDir.Exists)
throw new DirectoryNotFoundException($"{dataDir.FullName} does not exist.");

var resultsFilename = Path.Join(
dataDir.FullName,
$"mspc_versions_benchmarking_results_" +
Expand Down

0 comments on commit d384b7a

Please sign in to comment.