From: Liza Carvelli Date: Sat, 25 Jan 2025 17:59:38 +0000 (+0100) Subject: GatheringPathRenderer: Adjust dev lookup path X-Git-Tag: v4.16~2 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=b2c0934f07ac5b09403aa6da4b468a7f78b21c1e;p=Questionable.git GatheringPathRenderer: Adjust dev lookup path --- diff --git a/GatheringPathRenderer/RendererPlugin.cs b/GatheringPathRenderer/RendererPlugin.cs index 93c666a8..aa88906c 100644 --- a/GatheringPathRenderer/RendererPlugin.cs +++ b/GatheringPathRenderer/RendererPlugin.cs @@ -82,7 +82,7 @@ public sealed class RendererPlugin : IDalamudPlugin get { #if DEBUG - DirectoryInfo? solutionDirectory = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent?.Parent; + DirectoryInfo? solutionDirectory = _pluginInterface.AssemblyLocation.Directory?.Parent?.Parent; if (solutionDirectory != null) { DirectoryInfo pathProjectDirectory = @@ -91,7 +91,7 @@ public sealed class RendererPlugin : IDalamudPlugin return pathProjectDirectory; } - throw new Exception("Unable to resolve project path"); + throw new Exception($"Unable to resolve project path ({_pluginInterface.AssemblyLocation.Directory})"); #else var allPluginsDirectory = _pluginInterface.ConfigFile.Directory ?? throw new Exception("Unknown directory for plugin configs"); return allPluginsDirectory