Skip to content

Commit

Permalink
Write error instead of exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
pawchen committed Jul 29, 2024
1 parent f187b6b commit 610ceb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ private static void CopyDirectory(string source, string destination, bool recurs

if (!src.Exists)
{
throw new DirectoryNotFoundException($"Source directory not found: {src.FullName}");
Console.Error.WriteLine($"CopyDirectory: Source directory ({source}) not exists.");
return;
}

Directory.CreateDirectory(destination);
Expand Down

0 comments on commit 610ceb9

Please sign in to comment.