diff --git a/src/LCT.PackageIdentifier/Scanner.cs b/src/LCT.PackageIdentifier/Scanner.cs index 30bf1696..30a4c5b5 100644 --- a/src/LCT.PackageIdentifier/Scanner.cs +++ b/src/LCT.PackageIdentifier/Scanner.cs @@ -62,6 +62,13 @@ public static List FileScanner(string rootPath, Config config) } } } + + if (allFoundConfigFiles.Count == 0) + { + Logger.Error("Provided package file path do not contain valid input files."); + Environment.Exit(-1); + } + Logger.Logger.Log(null, Level.Notice, $"\n----------------------------------------------------", null); return allFoundConfigFiles;