Exit rewrite process if passed not existed file

This commit is contained in:
VperuS 2018-01-14 17:36:35 +02:00 committed by Jarl Gullberg
parent 6ad8b92c84
commit 1e2af5e648

View file

@ -42,6 +42,7 @@ namespace OpenTK.Rewrite
{ {
Console.Error.WriteLine($"Target assembly not found. \n" + Console.Error.WriteLine($"Target assembly not found. \n" +
$"Please check the given path ({Options.TargetAssembly})."); $"Please check the given path ({Options.TargetAssembly}).");
return;
} }
if (!File.Exists(Path.ChangeExtension(Options.TargetAssembly, "pdb"))) if (!File.Exists(Path.ChangeExtension(Options.TargetAssembly, "pdb")))