Skip to content

Commit 0258955

Browse files
Jack251970Copilot
andauthored
Log a warning when encountering an empty Name
Co-authored-by: Copilot <[email protected]>
1 parent 0d785d1 commit 0258955

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ private static void UpdatePluginDirectory(List<PluginMetadata> metadatas)
198198
{
199199
if (string.IsNullOrEmpty(metadata.Name))
200200
{
201+
Log.Warn($"Plugin with empty Name encountered. Skipping plugin initialization. Metadata: {metadata}");
201202
continue; // Skip if Name is not set, which can happen for erroneous plugins
202203
}
203204
metadata.PluginSettingsDirectoryPath = Path.Combine(DataLocation.PluginSettingsDirectory, metadata.Name);

0 commit comments

Comments
 (0)