Skip to content

Commit

Permalink
Error message for invalid files
Browse files Browse the repository at this point in the history
  • Loading branch information
karthika-g committed Apr 23, 2024
1 parent c51028e commit 5df5f67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LCT.PackageIdentifier/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ public static List<string> 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;

Expand Down

0 comments on commit 5df5f67

Please sign in to comment.