diff options
author | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-23 16:43:36 -0400 |
---|---|---|
committer | Zoryn Aaron <zoryn4163@gmail.com> | 2016-03-23 16:43:36 -0400 |
commit | 7c9336e3b140ea8d343d7abcc5c166016136d7b7 (patch) | |
tree | be8564d3fdf8d4a2eb92b8e4d2304fcbb20368ae | |
parent | 20217e6add78b40902fac1a547970e70ec8e195c (diff) | |
download | SMAPI-7c9336e3b140ea8d343d7abcc5c166016136d7b7.tar.gz SMAPI-7c9336e3b140ea8d343d7abcc5c166016136d7b7.tar.bz2 SMAPI-7c9336e3b140ea8d343d7abcc5c166016136d7b7.zip |
errors now tell you the dll that errored not the manifest
-rw-r--r-- | StardewModdingAPI/Constants.cs | 2 | ||||
-rw-r--r-- | StardewModdingAPI/Program.cs | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/StardewModdingAPI/Constants.cs b/StardewModdingAPI/Constants.cs index cffb711e..a29e5fa8 100644 --- a/StardewModdingAPI/Constants.cs +++ b/StardewModdingAPI/Constants.cs @@ -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 diff --git a/StardewModdingAPI/Program.cs b/StardewModdingAPI/Program.cs index 41d137d4..4d1d23d1 100644 --- a/StardewModdingAPI/Program.cs +++ b/StardewModdingAPI/Program.cs @@ -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);
}
}
}
|