Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit 472d331

Browse files
committed
Log invalid plugin xml
1 parent 28602cc commit 472d331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PluginLoader/PluginList.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private bool TryDownloadWhitelistFile(string file, string hash, PluginConfig con
208208
using (ZipArchive zipFile = new ZipArchive(zipFileStream))
209209
{
210210
XmlSerializer xml = new XmlSerializer(typeof(PluginData));
211-
foreach (var entry in zipFile.Entries)
211+
foreach (ZipArchiveEntry entry in zipFile.Entries)
212212
{
213213
if (!entry.FullName.EndsWith("xml", StringComparison.OrdinalIgnoreCase))
214214
continue;
@@ -223,7 +223,7 @@ private bool TryDownloadWhitelistFile(string file, string hash, PluginConfig con
223223
}
224224
catch (InvalidOperationException e)
225225
{
226-
LogFile.WriteLine("An error occurred while reading the plugin xml: " + (e.InnerException ?? e));
226+
LogFile.WriteLine("An error occurred while reading " + entry.FullName + ": " + (e.InnerException ?? e));
227227
}
228228
}
229229
}

0 commit comments

Comments
 (0)