errors now tell you the dll that errored not the manifest
This commit is contained in:
parent
20217e6add
commit
7c9336e3b1
|
@ -44,7 +44,7 @@ namespace StardewModdingAPI
|
|||
/// </summary>
|
||||
public static string LogPath => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "StardewValley", "ErrorLogs");
|
||||
|
||||
public static readonly Version Version = new Version(0, 39, 1, "Alpha");
|
||||
public static readonly Version Version = new Version(0, 39, 2, "Alpha");
|
||||
|
||||
/// <summary>
|
||||
/// Not quite "constant", but it makes more sense for it to be here, at least for now
|
||||
|
|
|
@ -303,12 +303,13 @@ namespace StardewModdingAPI
|
|||
Log.Error("Failed to create psconfigs directory '{0}'. Exception details:\n" + ex, Path.GetDirectoryName(s));
|
||||
continue;
|
||||
}
|
||||
string targDll = string.Empty;
|
||||
try
|
||||
{
|
||||
string targDll = Path.Combine(Path.GetDirectoryName(s), manifest.EntryDll);
|
||||
targDll = Path.Combine(Path.GetDirectoryName(s), manifest.EntryDll);
|
||||
if (!File.Exists(targDll))
|
||||
{
|
||||
Log.Error("Failed to load mod '{0}'. File {1} does not exist!", s, targDll);
|
||||
Log.Error("Failed to load mod '{0}'. File {1} does not exist!", manifest.EntryDll, targDll);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -332,7 +333,7 @@ namespace StardewModdingAPI
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error("Failed to load mod '{0}'. Exception details:\n" + ex, s);
|
||||
Log.Error("Failed to load mod '{0}'. Exception details:\n" + ex, targDll);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue