Skip to content

Commit 5df5f67

Browse files
committed
Error message for invalid files
1 parent c51028e commit 5df5f67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/LCT.PackageIdentifier/Scanner.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ public static List<string> FileScanner(string rootPath, Config config)
6262
}
6363
}
6464
}
65+
66+
if (allFoundConfigFiles.Count == 0)
67+
{
68+
Logger.Error("Provided package file path do not contain valid input files.");
69+
Environment.Exit(-1);
70+
}
71+
6572
Logger.Logger.Log(null, Level.Notice, $"\n----------------------------------------------------", null);
6673
return allFoundConfigFiles;
6774

0 commit comments

Comments
 (0)