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

Commit 6d2de4d

Browse files
committed
Fix compile on update
1 parent c5336eb commit 6d2de4d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

PluginLoader/Main.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,13 @@ private void ClearGitHubCache(string pluginsDir)
158158

159159
try
160160
{
161-
Directory.Delete(pluginCache);
161+
LogFile.WriteLine("Deleting plugin cache because of an update");
162+
Directory.Delete(pluginCache, true);
163+
}
164+
catch (Exception e)
165+
{
166+
LogFile.Error("Failed to delete plugin cache: " + e);
162167
}
163-
catch { }
164168
}
165169

166170
public bool TryGetPluginInstance(string id, out PluginInstance instance)

0 commit comments

Comments
 (0)