Skip to content

Commit

Permalink
Adds error message to missing file arg (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laboredih123 authored May 24, 2024
1 parent f19fc85 commit dede5b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DMCompiler/DMCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ public static void AddResourceDirectory(string dir) {
// NB: IncludeFile pushes newly seen files to a stack, so push
// them in reverse order to process them in forward order.
for (var i = files.Count - 1; i >= 0; i--) {
if (!File.Exists(files[i])) {
Console.WriteLine($"'{files[i]}' does not exist");
return null;
}

string includeDir = Path.GetDirectoryName(files[i]);
string fileName = Path.GetFileName(files[i]);

Expand Down

0 comments on commit dede5b1

Please sign in to comment.